Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2   Go Down

Author Topic: Class resolver  (Read 7879 times)

0 Members and 1 Guest are viewing this topic.

Gurner

  • member
  • Offline Offline
  • Posts: 664
Class resolver
« on: May 02, 2012, 04:15:20 PM »

Hi, when trying to use the class resolver I get the following message: java is not recognised as an internal or external command...

I have JDK and JRE 1.3_20 installed in C:

Typed this into CMD - "java -jar classresolver.jar ./Resolve", using windows 7 os

God knows how complicated programming in Java will be - I can't even get the tools to work!

Any help greatly appreciated  :)
Logged

Kazegami

  • target
  • member
  • Offline Offline
  • Posts: 725
  • Everyone is dumb, but some are dumber than others
Re: Class resolver
« Reply #1 on: May 02, 2012, 04:49:28 PM »

I had this problem too
I searched everywhere and eventually found this

Hope it helps :)
Logged
DFTBA

Verhängnis

  • Unofficial Heinkel Fan
  • Modder
  • member
  • Offline Offline
  • Posts: 1494
Re: Class resolver
« Reply #2 on: May 02, 2012, 07:59:44 PM »

I just have a folder called Resolve with all the hashed classfiles in it. Outside of that is the jar files etc and I just run the command line:

java -jar classresolver.jar ./Resolve

And it will resolve the classes to the parent directory in a new folder called 'com' followed by the appropriate directories gathered from the source code of the class. eg. com/maddox/il2/objects/weapons/

I just tried this on my windows 7 64bit and it works fine.
Just download and run the batch files and it will spare your fingers of typing command lines every single time.  :D

https://www.mediafire.com/?eoa8vd1gsso37cs
Logged

MANYSH

  • Modder
  • member
  • Offline Offline
  • Posts: 381
  • Shit happend !
Re: Class resolver
« Reply #3 on: May 03, 2012, 01:54:22 AM »

Typed this into CMD - "java -jar classresolver.jar ./Resolve", using windows 7 os

Do you change directory in CMD?

I mean If you run CMD you are in document and settings directory,  to use Class resolver you must be in folder where classresolver.jar is.

so do this simple

create folder on your hardrive c: and paste classresolver.jar in to this folder and some class files
run cmd and  write in  command line cd c:\ Folder name hit enter :D
then write java -jar classresolver.jar ./Resolve .........and is done :)
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9576
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Class resolver
« Reply #4 on: May 03, 2012, 02:15:40 AM »

Sorry ! I remove...

Overlap with the solution by Verhängnis !
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

Verhängnis

  • Unofficial Heinkel Fan
  • Modder
  • member
  • Offline Offline
  • Posts: 1494
Re: Class resolver
« Reply #5 on: May 03, 2012, 02:23:21 AM »

Eh, just download my package it has everything you need, place it anywhere, chuck the hashed or resolved classes in the folder and double click the batch files; nothing else.
Logged

Gurner

  • member
  • Offline Offline
  • Posts: 664
Re: Class resolver
« Reply #6 on: May 03, 2012, 03:31:56 AM »

Wow, thanks for all the replies, especially for the download and the youtube link!   :)

Unfortunately I have not made much progress...

So, I have set up the path as in the youtube vid correctly to 1.3_20/bin (thanks Kazegami!)

When I double click on the Resolve batch file (thanks Verhangis!) the CMD window flickers up for a split second and then dissappears.

When I bring up CMD manually and type java -jar classresolver.jar ./Resolve into it it now says "classresolver v 0.2 written by tim" etc. instead of the error I had before, so that's progress.

But I can't find the resolved files!   I expected them to appear in the Resolve folder, but they do not.

Verhangis, you said the files would be resolved to a new folder called 'com' but I can find no such folder.  The com folder in DBW just holds the usual text files.

I am trying to use the Resolver to open files like B27261D242F3990A so I can find out how they work and make my own.  Is this the correct usage?

Sorry for being such a newb, but we all have to start somewhere, right?!  :D

Thanks for turning me into a Modder by the way, whoever did that.  I wear my new badge with pride!  ;D  Hope I can do it justice...
Logged

BT~Tarik

  • Modder
  • member
  • Offline Offline
  • Posts: 1521
Re: Class resolver
« Reply #7 on: May 03, 2012, 03:42:20 AM »

Usually the com folder would be in the location where the resolver itself is...
like JavaClasses/com/maddox etc...
Logged

Gurner

  • member
  • Offline Offline
  • Posts: 664
Re: Class resolver
« Reply #8 on: May 03, 2012, 03:59:53 AM »

Guess I must be doing something wrong then, because there's nothing there  :( 

Scratch that!  I was putting the hashed file in the main folder and expecting it to appear in the Resolve folder, when I should have been putting it in the resolve folder and expecting it to appear in a new COM folder.

I'm in business now, at least untill my next f@ck up...

Thanks everybody!   ;D 
Logged

Verhängnis

  • Unofficial Heinkel Fan
  • Modder
  • member
  • Offline Offline
  • Posts: 1494
Re: Class resolver
« Reply #9 on: May 03, 2012, 05:22:34 AM »

Sorry my included readme makes no sense and is actually wrong lol.
To clarify;
When you wish to hash an un-hashed class file that you have created place it in the HASH folder and use the batch file.
When you want to resolve a hashed file for editing, place it in the RESOLVE folder and it will appear in the parent directory, where the jar files are in the folder com/.
Logged

MANYSH

  • Modder
  • member
  • Offline Offline
  • Posts: 381
  • Shit happend !
Re: Class resolver
« Reply #10 on: May 03, 2012, 05:50:51 AM »

Eh, just download my package it has everything you need, place it anywhere, chuck the hashed or resolved classes in the folder and double click the batch files; nothing else.
Thanks mate :) Very simple and handy tool :)

Guner

step1 unpack this nice tool :)



step2 go to Resolve folder and put class file in



step3 go back and click on Resolve.bat, com folder will be crated



You can't do this wrong with this tool  ;)


Verhängnis Thanks again very helpful
Logged

Gurner

  • member
  • Offline Offline
  • Posts: 664
Re: Class resolver
« Reply #11 on: May 03, 2012, 06:07:57 AM »

Thanks, I've had a great morning burning my eyeballs out staring at Java code   8)

Now for my next problem - I have found the class file I want to edit - (com/il-2/ai/world) in a bunch of resolved 4.09 classes I dl'd from somewhere. 

But I know (cos I tried) that the 4.09 class file will not work in my 4.101 game.

And there are no class files in the DBW/STD/com/etc folder.

So, where can I find the com/il-2/ai/world class file for 4.10?  If I (or you!) can find it it looks like a simple question of altering a few values and then re-compiling it, hashing it and putting it in my mod.

Apologies once again for my newbiness!  :-[  And thanks again for getting me this far!
Logged
Pages: [1] 2   Go Up
 

Page created in 0.039 seconds with 24 queries.