Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » Drops all items, burst mode, attachments, inventory slots and merc panels in source code.
Drops all items, burst mode, attachments, inventory slots and merc panels in source code.[message #292845] Sat, 29 October 2011 23:32 Go to next message
Starchris is currently offline Starchris

 
Messages:33
Registered:September 2010
Location: Poland
Hello Everyone

I'm trying to put some advanced modifications on my mods but unfortunately I have a lots of problem with that. I'm not very experienced in programming so that's why this is not easy for me and I'm looking for help wherever I can.

1.) My first problem is with option drops all items. I know that this is in file: "Inventory Choosing.c". I am changing there what I should change and everything works fine. Every soldier drops everything what he has. But this is not working with the tanks and monsters. Does anyone knows in which file this option I can find ?

2.) Second problem I have with burst mode. In JA2 Gold 1.12 we can't shoot more bullets in burst mode than six. I'm trying to change that but so far without success. I'm still searching and searching where could it be but also without success. Maybe someone remember in which file (or files) this blockade could be taken off.

3.)Third Problem. I am creating also a New Attachment System in classic version of Jagged Alliance 2 (Gold v. 1.12) and trying to add more than 19 inventory slots. It will be look like in the pictures below (they are only the pictures done in Windows Paint). Everything is going in a good direction but with one exception. I can't find in which file (or files) I could add more than four attachment slots and more than eight small and four big slots in merc inventory. If anyone knows anything about this I will be very grateful for every kind of informations.


http://jagged-alliance.pl/images/articles/ja2_rotf_bron/ja2_rotf_news/nas_classic_02.jpg
http://jagged-alliance.pl/images/articles/ja2_rotf_bron/ja2_rotf_news/nas_classic_02.jpg


http://jagged-alliance.pl/images/articles/ja2_rotf_bron/ja2_rotf_news/new_inventory_01.jpg
http://jagged-alliance.pl/images/articles/ja2_rotf_bron/ja2_rotf_news/new_inventory_01.jpg


4.) Fourth problem. There is one more thing. In classic version of JA2 (Gold 1.12) we can increase amount of ammunition in one clip to 255. Everything here is working fine but when I want to increase ammunition further then 127 then the vertical line which is showing capacity of the clip is going down. Really I don't know in which file (or files) I should searching for a solution of this problem.


5.) Fifth problem. Unfortunately I have one more problem. I'm trying to increase the number of mercenaries in squad. I have changed in files "squads.h", "interface panels.c" and "interface panels.h" all necessary code but not everything is working properly. The problem is that all new panels (seventh, eighth, ninth and tenth) are inactive. They are not reacting on left or right click of mouse and also all guns from that panels are showing in the panel of sixth mercenary (yellow mark). I probably forgot about something but I can not find what or where it is. If anyone remember where it could be I will be very gratefull for every kind of information.

http://jagged-alliance.pl//images/news/newsy/ja2_ub_multiple_resolutions/1920x1080.jpg
http://jagged-alliance.pl//images/news/newsy/ja2_ub_multiple_resolutions/1920x1080.jpg



I will be very grateful for every kind of help, informations, suggestions or links to other threads that are similar to this one.

[Updated on: Thu, 03 January 2013 21:02] by Moderator

Report message to a moderator

Private 1st Class
Re: Drops all items, burst mode, attachment slots in source code.[message #292956] Tue, 01 November 2011 22:36 Go to previous messageGo to next message
Starchris is currently offline Starchris

 
Messages:33
Registered:September 2010
Location: Poland
1.) First problem solved. Option drops all items for tanks and all monsters is in the same file "Inventory Choosing.c" at the very end of this file.


3.) Third problem I only thought that was solved. I have found source code to JA2 005 modification. There are similar changes which I was trying to do all the time. After comparing this source code with my work I found errors in both cases. With enlarged inventory I only forgot to define this old inventory for example "#define OLD_NUM_INV 19" and that's it. After this, everything is working correctly. With classic NAS I found one code in file "interface items.c" which I did not change and after changing this code, everything has started working properly. I have found source code to JA2 005 in Scheinworld Archive. Thank You very much Scheinworld for your Archive. You are great.


5.) Fifth problem also solved. I have found the code that I did not change in file "interface panels.c and after changing this missing code everything has started working correctly.


Unfortunately I really had to give up. I reached my limits of my capabilities and nothing further I cannot do. I'm stuck with classic New Attachment System and enlarged inventory and others smaller problems. Main problem is that, when I add new inventory slot or new attachment then all enemies and civilians are disappearing from the map or the game crashes while the map is finishing to load. Enemies and civilians do not take classic New Attachment System and enlarged Inventory so that's why this is one of the main problem of this modification. I have no idea how to fix it.

Here is the source code of this modification. If someone will have time and knowledge to check what I have done wrong that this modification is not working, I will be very grateful for that and of course for any kind of help. I wrote about all problems and changes in this source code in MUSTREADME.PDF with exact location of these changes in all files.

Link removed

In set of files, you also find other three source code. First one is pure original source code of Jagged Alliance 2, second one is source code of JA2 005 (he has the same modifications which I was trying to make), third one is the latest source code of JA2 1.13 (in many cases he was very helpful). All source codes are freeware.

I also uploaded three very helpful programs. First one is WinMerge for comparing two similar files, second one is Notepad++ for editing source code and third one is LookDisk for searching words or parts of the words in many files and folders. All programs are freeware.

Below is a gameplay of this modification. It is working because earlier I removed all enemies and civilians from the map. In other case the game is crashing while the map is finishing to load.

Video removed

[Updated on: Mon, 28 May 2012 11:10] by Moderator

Report message to a moderator

Private 1st Class
Re: Drops all items, burst mode, attachment slots in source code.[message #293256] Thu, 10 November 2011 22:45 Go to previous messageGo to next message
Scheinworld is currently offline Scheinworld

 
Messages:961
Registered:December 2007
Location: Baltic Sea, Germany
Hi Starchris,

Starchris
I have found source code to JA2 005 in Scheinworld Archive. Thank You very much Scheinworld for your Archive. You are great.


Thank you for your kind words! Smile I'm happy Kermi gave me this possibility to share my private collection of JA-related files with all fans of the series and when I read sentences like yours and see that the archive could help you to solve at least one problem of your list so you could further improve your mod then I know it was/is worth the time.

Btw you made some really nice modifications in the past, but I have the feeling many people here in the Pit didn't become aware of them.

Not just the Polish JA2 community can be proud to have such competent modders like you, Bartek, Len or Jazz of course. Thank you for your effort! Hopefully you can find some answers here to solve your remaining problems.


Best regards; Schein

[Updated on: Tue, 15 November 2011 17:34] by Moderator

Report message to a moderator

First Sergeant

Re: Drops all items, burst mode, attachment slots in source code.[message #293497] Mon, 14 November 2011 15:05 Go to previous messageGo to next message
Starchris is currently offline Starchris

 
Messages:33
Registered:September 2010
Location: Poland
These modifications are really out of date. You should update them. I wrote to you PM.

[Updated on: Mon, 14 November 2011 15:07] by Moderator

Report message to a moderator

Private 1st Class
Re: Drops all items, burst mode, attachment slots in source code.[message #293610] Tue, 15 November 2011 14:52 Go to previous messageGo to next message
Scheinworld is currently offline Scheinworld

 
Messages:961
Registered:December 2007
Location: Baltic Sea, Germany
Starchris
I wrote to you PM.


And answered! Smile

Shall I delete the two links I posted above and you post your links with the new files instead?


Best regards; Schein

[Updated on: Tue, 15 November 2011 17:35] by Moderator

Report message to a moderator

First Sergeant

Re: Drops all items, burst mode, attachment slots in source code.[message #293616] Tue, 15 November 2011 16:27 Go to previous messageGo to next message
Starchris is currently offline Starchris

 
Messages:33
Registered:September 2010
Location: Poland
Yes please, delete those links because these modifications have many errors which I repaired in latest versions. Thanks.

Report message to a moderator

Private 1st Class
Re: Drops all items, burst mode, attachment slots in source code.[message #296105] Mon, 02 January 2012 09:36 Go to previous messageGo to next message
Hawkeye is currently offline Hawkeye

 
Messages:2416
Registered:October 2005
Location: Australia
Hey Star Chris a couple of the guys have been checking out your work you did on running UB at a higher resolution. Are there any plans to update any of the more larger UB mods out there? A few guys are currently playing 'Shady Job' which is still running in old resolutions. Would there be a lot of work updating such a mod, if only to increase the resolutions?

Report message to a moderator

Lieutenant

Re: Drops all items, burst mode, attachment slots in source code.[message #296121] Mon, 02 January 2012 16:24 Go to previous messageGo to next message
Starchris is currently offline Starchris

 
Messages:33
Registered:September 2010
Location: Poland
To increase the resolution in Shady Job I will need only the source code of this modification, which unfortunately I do not have. With source code, I think it will take me a few days. Without source code I am not able to do this.

[Updated on: Mon, 02 January 2012 18:16] by Moderator

Report message to a moderator

Private 1st Class
Re: Drops all items, burst mode, attachment slots in source code.[message #296149] Tue, 03 January 2012 07:35 Go to previous messageGo to next message
Hawkeye is currently offline Hawkeye

 
Messages:2416
Registered:October 2005
Location: Australia
Oh that doesn't sound so bad time-wise, but unfortunately I believe the English translation was made via Hex-coding. Sad

Thanks anyway.

Report message to a moderator

Lieutenant

Re: Drops all items, burst mode, attachment slots in source code.[message #296174] Tue, 03 January 2012 15:40 Go to previous message
Starchris is currently offline Starchris

 
Messages:33
Registered:September 2010
Location: Poland
That's right, also Polish translation was made via Hex-coding.

Report message to a moderator

Private 1st Class
Previous Topic: Air raids?
Next Topic: JA2 Gold - Full translation
Goto Forum:
  


Current Time: Fri Apr 19 22:46:29 GMT+3 2024

Total time taken to generate the page: 0.01550 seconds