J2ME-Loader icon indicating copy to clipboard operation
J2ME-Loader copied to clipboard

怨天奇谋 - volume keys are needed

Open fishlabs opened this issue 4 years ago • 14 comments

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 avatar Jul 15 '20 01:07 fishlabs

@nikita36078

fishlabs avatar Jul 16 '20 10:07 fishlabs

Why the rush?

hex007 avatar Jul 16 '20 10:07 hex007

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.

fishlabs avatar Jul 16 '20 21:07 fishlabs

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

nikita36078 avatar Jul 19 '20 18:07 nikita36078

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

fishlabs avatar Jul 21 '20 22:07 fishlabs

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

nikita36078 avatar Jul 25 '20 20:07 nikita36078

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

TingXuanR avatar Aug 01 '20 14:08 TingXuanR

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.

woesss avatar Dec 10 '20 08:12 woesss

@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

fishlabs avatar May 20 '21 23:05 fishlabs

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

woesss avatar May 21 '21 05:05 woesss

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. 怨天奇谋

fishlabs avatar Aug 22 '22 14:08 fishlabs

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)

woesss avatar Aug 22 '22 18:08 woesss

@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

fishlabs avatar Aug 23 '22 08:08 fishlabs

lookupswitch 10, line 1157

woesss avatar Aug 23 '22 09:08 woesss