Google
 
Web www.howardforums.com
Pages: 1

An idea to put Games, but need help!!!

(Click here to view the original thread with full colors/images)


Posted by: dav34

I've been trying to put games on V902SH without using WAP...
Since, we can't install the game directly from the memory card, I was thinking that it could be done with the WAP browser...

Here's a method that I came up:
-make a html file with a link to the game, i.e. "a.html"
-and make a folder for the game files, i.e. "a_files"

So, basically it's an offline webpage...
It's the same when you save a webpage to your PC...

This is the code for the html file:

<HTML>
<BODY>
<a href="a_files/game1.jar">Link 1</a>
<a href="a_files/game2.jar">Link 2</a>
<a href="a_files/game3.jar">Link 3</a>
</BODY>
</HTML>

The html page works, however when I click the link, it says "Error: Document too large for available memory" (tested with 52KB jar file), or "Invalid Data" (tested with 9KB jar file)
But, I tried with an 8KB image file, it works perfectly...

Does anyone know how to overcome this problem?

Ohh... one more thing, when you browse the page, and go to "Option", you can see "Save items"... how do you embed a file on the html page, i.e. jar file, etc? It might shows on "Save Items" option...

Anyone?



Posted by: iplen

Ya got something there.... I'm going to try this out on my own and ill post what results I get here..

Theoretically it should work, since its from the WAP browser..



Posted by: dav34

Sweet cake...



Posted by: UncleAllEvil

Year ago or maybe more I was trying to do same thing with NEC phone and phone was "too smart" for this. Since I`ve made few web sites with games for mobile phones I will make some research on my 902 too, but I don`t think that phone will allow for something like that.



Posted by: foo_mark

You have to put the JAD instead of the JAR in ur HREF link, since Sharp, NEC or Panasonic phones cannot directly download JARs and must go straight to a JAD (Java Application Descriptor) in order to download the application.

<HTML>
<BODY>
<a href="a_files/game1.jad">Link 1</a>
<a href="a_files/game2.jad">Link 2</a>
<a href="a_files/game3.jad">Link 3</a>
</BODY>
</HTML>

This would be the right code. However this might not guarantee to work, since it might complain of the MIME types for those files.

By the way, are you guys using the "file://" URL header in the WAP browser?



Posted by: UncleAllEvil

As I thought, this will not work. I`ve made a simple test, phone can see and recognize .jad & .jar files on mem card, it even starts to download (progres bar flashes for a sec) but thats all, right after there is always error msg "Improper data cannot download application"
Tested file size was around 56kb.
Moving files to internal memory wont help.
"file://" URL header cannot be added because it`s automatically added by phone`s browser (as it should be).
Probably there is firmware restriction for this kind of "tricks"



Posted by: foo_mark

The error you get "Improper Data Cannot Download Application" is due to a MIME problem with the host server, in this case the local directory of the memory card. Because I had a similar problem when I setup a place to download on my website and got that same error you mentioned, and I had to fix that by specifying the MIMEs for JAD and JAR on the webhosting program (normally Apache or IIS). I am not sure how can you set the MIME on a memory card...



Posted by: UncleAllEvil

I can`t change MIME types.
Is there any way to fix this?
When I used "options->advanced->details" on .jad link phone gave me details:
(.jad link name)
URL
file:/cat/mi/other/mc/index.html
Type
application/vnd.wap.wmlc
Size
248 Bytes

I`ve used path "file:/cat/mi/other/mc/name.jar" and than "cat/mi/other/mc/name.jar" in .jad file to point phone directly to .jar file but it wasn`t working



Posted by: dav34

I don't think the problem lies on the path... I've tried with a wrong filename or invalid path, and it still produce the same result...
I think it has to be the MIME-type...

I've read in other forums, you need to include this:
application/java-archive jar
text/vnd.sun.j2me.app-descriptor jad

But, I'm not really where... in jad file or html file?
I have no idea about this...
Maybe it might be in html file...
I'm not that good in html coding, but I tried to embed the file with:

<EMBED SRC="a_files/game.jar" TYPE="application/java-archive"/>

When I opened the html in my phone, it got stuck for a while, and the phone seems a bit messed up (some of characters were not displyed, i.e. "Y s" for "Yes")...
Anyway, I restarted the phone, then it went back to normal...
Does anyone here know more about this?

I also looked at the Browser's detail, "Option" -> "Advanced" -> "About", you can see these rules or some sort... for example "ENABLE_DRM"... I guess this prevent us to install the game...



Posted by: hangtime23

just wondering, how did you guys load the .html page in the first place? did you put it in the "other documents" folder on the memory card? is there a way to enter the URL through the browser? cuz I'm thinking...maybe we can use that QR code generator to generate the URL for the .jad, and then from there, load the .jad and .jar file off the memory card...



Posted by: fenix1

to get a html from a .jad on your pc just rename the extension to text or internet explorer or somethnig of that sort . then when you open it it will be the program string . in that you will see the url



Posted by: sketch143

Digging this up from the condemned archives of hell..

Try using a *.htaccess file that contains the right coding and this should work..



Posted by: sketch143

and have you guys tried hosting a *.wml page instead of an *.html one?



Posted by: iplen

It would work... For A6290 firmware ones too? (The hybrid firmware)..

The previous hack with the startup 0's and 1's didnt work for me, so this could be another way to do it

But em.. How exactly do you get the browser to point to these web pages exactly? And where do you put em?



Posted by: sketch143

ok.. dav34 or UncleAllEvil, can you guys teach us how to access the sdcard from the browser?

and i've made 2 .htaccess files and one httpd.conf which i'll get you guys to try.. =\ basically, just put them in the folder where the page is hosted...


http://users.cjb.com/s143/.htaccess.zip

http://users.cjb.com/s143/2.htaccess.zip

http://users.cjb.com/s143/httpd.zip

you need to unzip them

use them only one at a time because they contain different codings.

Quote:
The configuration directives found in a .htaccess file are applied to the directory in which the .htaccess file is found, and to all subdirectories thereof.


From what i read in most of these situations, this is the most common solution to these problems

In theory, this should rid you of that error..

i can't try this myself since i have no idea how to access the page in the sd card on a 904sh.

Edit: bah.. didn"t work.. =( ah wells =\



Posted by: Timsta

awww. good try tho.. good try



Posted by: Desert_Fox

So you can't bluetooth the game's JAR file to a sharp 903 and install it?



Posted by: UncleAllEvil

No, this wont work



Posted by: sketch143

ok.. our main problem was always that wap rates are too expensive when we download.. so.. accessing a page that doesn't have a big file size is not a problem...

Can't we just access a page thru wap that has a set of specified MIME-types already set then we just point the link to our SD card?

like say,
An online wap page like Uncle's containing the link

<a href="file:///PRIVATE/VODAFONE/My%20Items/Other%20Documents/jg/RagnarokMage.jar"> Ragnarok</a>

Edit: this won't work too, coz the browser automatically adds the rest of the link on top of the existing page..

it'll turn out like the:
republika.pl/Uncle/file:///PRIVATE/VODAFONE/My%20Items/Other%20Documents/jg/RagnarokMage.jar



Posted by: iplen

Its not a relative link, so I dont think it'll necessarily turn out like republika.pl/Uncle/file:///PRIVATE/VODAFONE/My%20Items/Other%20Documents/jg/RagnarokMage.jar..

But my wap doesnt work, so I cant try it
Sounds like its worth a try, though~



Posted by: sketch143

i don't know but this might not work either, i think the MIME-types are only set on files within the server..

iono, you guys try it.. =\



Posted by: UncleAllEvil

Try with this:
file:/cat/mi/other/mc/name.jad
this is internal path for Other Documents folder on SD card in my 902. You can get this path in phones browser.
Make webpage with at last one link to .jad file than point to this file and:
options->advanced->details



Posted by: sketch143

my cellphone finally gave me the option of downloading the files to my phone... but it's type still states that it's a "Non-compliant File".. =\



Posted by: sketch143

i stumbled upon this while doing my research

http://sprintdevelopers.com/modules...=article&sid=16
Quote:
A General Content Descriptor (GCD) file is similar to a JAD file. While a JAD describes a J2ME MIDlet for download, a GCD describes downloads like ringtones and pictures. GCD's are plain text files and you can create them using any simple text editor like Windows Notepad. If you'd like your phone to download your own picture, then you'll need a GCD file.


It maybe possible to use this to get the browser to recognize the files.. =\

but then again

Quote:
If you are trying to use a website like GeoCities or AOL then you have a problem. Most ISPs will not allow you to define new MIME types and they will not have the GCD type already defined for you. You need to use a server where you have more control. For example, on an Apache server you'd modify the .htaccess file. Again, this is something that most ISPs won't allow you to do.


Same problem as before..



Posted by: sketch143

if we can only download and install something that would add both "application/java-archive" and "text/vnd.sun.j2me.app-descriptor" as a predifined MIME type in our browsers, everything else would be easy

EDIT: OMG>. dangerous experiment.. after loading my newly coded page, my 904 rebooted.. =o it reboots everyime i access my new page



Posted by: Timsta

still no work? ur working hard. take a break. go look at some videos



Posted by: sketch143

what videos? =\

New hard gay episodes out on youtube btw



Posted by: UncleAllEvil

Heh, I know how to make a website that will freeze my 902 for a while
But you`re on higher level, you`ve forced your phone to reboot

There`s no need to specify .jad, phone recognize this file. Put one .jad file into other documents folder and than check details about this file in your phone. My 902 gives me this:

Type
text/vnd.sun.j2me.app-descriptor
(+size and date)

that means phone recognize this file properly.
But for .jar it says:

Type
application/octet-stream

and I`m sure that it`s deep inside phone fw and won`t allow us to change this



Posted by: Timsta

haha. i was watchin naruto just now on youtube at work.



Posted by: sketch143

but you can still properly download off your site via wap right?

if your phone can properly recognize the jad file, you shouldn't have any problems installing the jar file.

what does it say when you access the jad file on your browser?

btw.. my phone doesn't recognize both.. it sees both as a non-compliant file type..

more over, i don't see any options to edit the internet settings on the 904.. does this mean that even after unlock we can't use wap?



Posted by: UncleAllEvil

Read closely what I wrote sketch.
I said put .jad into Other Documents folder and use Details option on it.
Phone won`t install any game from memory card, but recognizes .jad.
Yes, I can download java trough internet, and only this way.

If you can`t edit internet settings (look for options in connections menu) than you won`t be able to use internet and mms.



Posted by: iplen

Btw, is there any way to look up where the games in the 903SH is held? Perhaps if there were some way to slip it in there, don't most cellphone internal memory space come from a flash disk of some sort inside the phone?

Probably wouldn't be a practical solution tho :S ..

But its better to spit out ideas while its still fresh



Posted by: Timsta

you can't just slip games into the hardcoded area of the phone... i wish you could.. but you can't. the demo games are hard coded into the section of the phone already. and yah.. you could slip some code (game code) into that area.. but how would the normal average joe user do that tho? they need tools.. software readers.. quite frankly.. after seeing ppl screw up the bootloader.. i don't want to think of how ppl would load up games into code



Posted by: UncleAllEvil

I know this kind of method to load games into VS3 memory. It works but it`s risky too.



Posted by: Timsta

but if its risky.. ppl shound't be doing it.. really.. especailly for panasonic.. ther's barely anyone out there with tools to redo its firmware



Posted by: iplen

You could, of course, tell us how to do it anyways

More ppl doing it = increase in demand for panasonic/sharp techies who can redo firmware~

Plus an added bonus is that we might find out more about the phone if we had enough people checking out its insides Modding phones give a certain aspect of personalization, right? Which is precicely why I think some Motorola phones are so popular (Hex edits, firmware tweaks, etc.)



Posted by: Timsta

omg.. stop encouraging ppl to kill phones



Posted by: sketch143

^ exactly, dead sharp phones are totally different from dead motorolas man.. dead motorolas are easy to revive...



Posted by: Timsta

yeah.. most of the time.. motos can come back to life.. sharp.. pray to God... the Phone Gods.. the Car Gods.. any god yodu can think of if it dies





vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2008 - Created by Stefan "Xenon" Kaeser