BP Logo
Home » SIRTECH CLASSICS » Jagged Alliance 2 » JA2 Technical Department » JAPE and 1.07 savegames
JAPE and 1.07 savegames[message #161309] Thu, 11 October 2007 16:30 Go to next message
S.n.a.k.e.

 
Messages:6
Registered:October 2007
Hello all,

I have recently returned to playing JA2, and after installing and patching, I find myself with the 1.07 version of the game. It is TBH more stable than 1.06.

Problem is, that JAPE doesn't understand the 1.07 savegame format. I have found the original JAPE source code (v0.32) and have it working(?) on my machine. The issue seems to be with dead / fired mercs in the MERC structure. There seems to be exceptions to the structure for mercs.

I thought I had it figured out, but for all the time I spent getting the structure correct, the next save game file I opened didn't work. Sad

Does anyone have the structure of the savegame file. I would like to try to get a newer version of JAPE created that works with 1.07 files.

Any help in this area would be appreciated.

Regards,
Marc

[Updated on: Thu, 11 October 2007 16:31] by Moderator

Re: JAPE and 1.07 savegames[message #161314] Thu, 11 October 2007 17:20 Go to previous messageGo to next message
Kaerar

 
Messages:2033
Registered:January 2003
Location: Australia :D
you got the source!!

Please post it for the coders to work on!!! They have been looking for that!


Re: JAPE and 1.07 savegames[message #161323] Thu, 11 October 2007 21:27 Go to previous messageGo to next message
gmonk

 
Messages:672
Registered:April 2002
Location: Newfoundland, Canada
I posted a link with a page for the source code in this thread yesterday:

http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=161227#Post161227

edit: n/m, it's for 0.36 Java source.

[Updated on: Thu, 11 October 2007 22:06] by Moderator

Re: JAPE and 1.07 savegames[message #161324] Thu, 11 October 2007 21:29 Go to previous messageGo to next message
S.n.a.k.e.

 
Messages:6
Registered:October 2007
Really!!??

I've read a bunch of topics here about this, and it didn't seem as though there was a great clamoring for the source to JAPE (working copy of the program sure, but not the source) itself. The program itself is kind of kludgy and makes broad assumptions (see my 1st post), but if people want it....

Give me a place to U/L to, or PM me, and I will send you the .java files for JAPE .032

PS: I have found a copy of the JA2 source (in c), and am looking through it now, but my c skills were small to begin with, and right now its a bit overwhelming. I still haven't found the Load/Save game code yet (but I'm getting close).

Peace,
Marc
Re: JAPE and 1.07 savegames[message #161340] Fri, 12 October 2007 01:11 Go to previous messageGo to next message
cdunigan

 
Messages:134
Registered:September 2007
Location: Madison, Wisconsin, USA
Try here: http://www.ja-galaxy-forum.com/board/ubbthreads.php/ubb/showflat/Number/161339/Main/12034/#Post160723

Oops, didn't read the versions. That thread is for v1.13, I can't say if it's the same files for v1.07.
Re: JAPE and 1.07 savegames[message #161634] Mon, 15 October 2007 17:12 Go to previous messageGo to next message
S.n.a.k.e.

 
Messages:6
Registered:October 2007
OK,

JAPE is working on XP SP2 and JA version 1.07!!

It still seems as though JA2 can produce files that the code in JAPE 0.32 cannot read (due to dead/fired mercs). But, it you run the save game for a few game days, then resave, the save game file is then written with the proper predictable format.

I can add some code to JAPE to allow that situation to be detected and warn the user that the read wasn't complete. Then, if I/someone can find how/why the exceptions to the structure occur the exceptions can be handled.

Some enhancements I am considering:
1) Listbox filters - My Mercs, AIM Mercs, Merc MERCs, NPCs, etc...
2) Auto Item types - Click an empty slot, and be able to insert premade items (FN-FAL with G/L, scope, bipod and a 40mm Gren), 4 regen boosters, Spectra Coated vest with ceramic, etc...
3) Sector Inventory - Add a tab to the screen with the sector inventory. This might be harder because adding items would cause the savegame structure to grow. I'm not sure if there are overall file checksums that might have to be recalculated.

Now that its working, I can send out copies of the .jar file.

I'm not sure how much more I will work on this (now that I can edit my savegames Smile), unless others clamor for features to be added.

Let me know,

Marc
Re: JAPE and 1.07 savegames[message #164008] Thu, 08 November 2007 19:47 Go to previous messageGo to next message
MikeThePro

 
Messages:175
Registered:November 2007
Location: Bulgaria

Hi, erm, Jape is one of the reasons I found this site.But I learn I need some sort of Java package to run it.There isn't a way to run it without it, right?

Because that will take me to my next question->Is there any decent character editor for JA, tht works with UC.I need to make some changes in the stats my IMP has(Gave him too much MRK which I could ahve used to boost other stats,but I'm too ahead to go back to start).

Anyone able to help?
Re: JAPE and 1.07 savegames[message #164010] Thu, 08 November 2007 20:01 Go to previous messageGo to next message
S.n.a.k.e.

 
Messages:6
Registered:October 2007
Well, you could d/l the source code for JAPE, and d/l NetBeans 5.51 from Sun, and run in source code mode.

If people want, I can compile my version of JAPE into a .jar file. But you all would need the latest runtime of Java (also available from Sun).

I am still working on decoding the entire savegame file. The guy who wrote JAPE makes some spectacular assumptions (which work, btw) but it simply reads giant gobs of the savegame file and then writes them back intact. I would like to have stuff like an item sector editor, and premade assignable items (think FN-FAL with a talon, scope/laser, rod & spring) or coated spectra vest with ceramic plates.

Doesnt the editor in 1.13 work on UC files? Cant you use JAPE to edit your IMP? Just use the add to column for the stat you wish to ahh 'enhance'.

Peace,
Marc
Re: JAPE and 1.07 savegames[message #164018] Thu, 08 November 2007 20:55 Go to previous messageGo to next message
MikeThePro

 
Messages:175
Registered:November 2007
Location: Bulgaria

Hate to be off topic but, which editor?the Proedit?I found it yesterday, based on what I read around here, but besides that, I dunno how to use it to edit the IMP and/or the savegame I already have made...

And I can't find Jape, or if I do, I can't figure a way to run it...probably I have just the source or I;m lacking the java stuff.

And thanks for the quick response.
Re: JAPE and 1.07 savegames[message #164022] Thu, 08 November 2007 21:22 Go to previous message
S.n.a.k.e.

 
Messages:6
Registered:October 2007
Mike,

Yes, ProEdit should work, but if you only want to edit your IMP, you can use JAPE (assuming it works on your version)

As far as JAPE...
You can get NetBeans here

If you are interested, I can email you the JAPE source code (original .032), NetBeans will allow you to compile the source code into a .jar file which can be run by double clicking it (If you have the java runtime installed. That can be found here .

HTH,

Marc
Previous Topic: How to animate own sprites
Next Topic: Problem with my map
Goto Forum:
  


Current Time: Mon Sep 20 08:13:24 EEST 2021

Total time taken to generate the page: 0.04705 seconds