nikita36078 / J2ME-Loader

A J2ME emulator for Android.
Apache License 2.0
1.72k stars 195 forks source link

怨天奇谋 - volume keys are needed #714

Open fishlabs opened 3 years ago

fishlabs commented 3 years ago

Emulator version: 1.55 Game resolution: 240x320

Device: Xiaomi Redmi3

Android version: 5.1 Description of the issue: Volumekeys are needed in some games. For this example《天剑奇侠传-典藏版(怨天奇谋)》. Screenshot_2020-07-15-08-03-32-449_ru playsoftware j2meloader

Game.zip

fishlabs commented 3 years ago

@nikita36078

hex007 commented 3 years ago

Why the rush?

fishlabs commented 3 years ago

Why the rush?

This game is my overdue pity that I should have accomplished ten years ago in Symbian Age. It can't be pass through without the Volumekey, which is the reason why I'm eager.

nikita36078 commented 3 years ago

Could you send me a save before this moment? It's located in J2ME-Loader/data/怨天奇谋

fishlabs commented 3 years ago

Could you send me a save before this moment? It's located in J2ME-Loader/data/怨天奇谋

I'm sorry I have already passed the moment and saved the game after the moment(But it's just a while after it, maybe still help). After loading this save, walk up into the house on the top-right corner, then you will see another tip about using volume+ key as the pic shows, which comes after a few dialogues.(The tip: Teamleader can use special skill, to switch On/Off his skill by pressing Volume+ key. 1

Here follows the save file: 怨天奇谋.zip

nikita36078 commented 3 years ago

Thank you, I will think how to handle the additional keycodes better.

TingXuanR commented 3 years ago

Emulator version: 1.55 Game resolution: 240x320

Device: Xiaomi Redmi3

Android version: 5.1 Description of the issue: Volumekeys are needed in some games. For this example《天剑奇侠传-典藏版(怨天奇谋)》. Screenshot_2020-07-15-08-03-32-449_ru playsoftware j2meloader

Game.zip

很好奇无法御剑飞行你是怎么打到后面的。我一直卡在岳飞庙的机关。 @fishlabs

woesss commented 3 years ago

Have you played this game on a real j2me phone? Which model?
It uses keycode 9 or -9, but I did not find any mention of it in any specifications.
Non-standard keycodes require manual configuration, which is difficult for users.

fishlabs commented 2 years ago

@woesss Thanks for your reply. I'm sorry I have no real j2me phone at the moment.Can you tell me how to manually configure its keycode ?thank you

woesss commented 2 years ago

Unfortunately, the emulator does not have this feature yet.
Maybe there is another version of the game?
I have not seen anywhere a mention of the keycode 9 or -9.
It looks like a confusion - it seems to me that someone wanted to assign this function to the key with the number "9", but its code is 57.
At the moment, you can only change this code in the game itself (via edit its bytecode) - you can ask about it on the forums if you cannot do it yourself

fishlabs commented 1 year ago

Unfortunately, the emulator does not have this feature yet. Maybe there is another version of the game? I have not seen anywhere a mention of the keycode 9 or -9. It looks like a confusion - it seems to me that someone wanted to assign this function to the key with the number "9", but its code is 57. At the moment, you can only change this code in the game itself (via edit its bytecode) @woesss Hi, esteemed senpai. As shown in the picture, I have opened the game with the java game decompiler "Halo". Can you tell me in which class file you found the "Keycode 9"? I think I just need to change it to the correct Keycode and it should work. 怨天奇谋

woesss commented 1 year ago

h.class, method void e(int), case 9: of one of the switches. You need to replace 9 with the keycode of any free key (absolute value, without sign)

fishlabs commented 1 year ago

@woesss Honored to receive your reply! Now I have checked all the methods in the "h.class" file. I think the most likely method is this method "e" which located between "keyPressed" and "keyReleased". However, there are several "Case 9:" in this method "e". So I took a picture of all the places where "switch" appears and made a GIF. I would like to know which "Case 9:" is the one you referr to? 3Q! h class

woesss commented 1 year ago

lookupswitch 10, line 1157