Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Troubles with new weapons again.. (SOLVED!!) (And I hope solved for good..)
Re: Troubles with new weapons again..[message #366010 is a reply to message #366009] Fri, 29 March 2024 01:06 Go to previous messageGo to previous message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
If you're using version "JA2_113-v1-115-g32cae66-Ga965L0144-English", "...v1_115..." is from August 2023 (last year, that's a tad to old)

So, yes. I'd suggest a fresh install of the newest 1.13 to be up-to-date with latest available features and fixes

You can download it from gitHub:

gitHub - release of the newest 1.13

(the zip-files are under "Assets")

At the moment of writing, I see version

"JA2_113-v1-134-gfad3a27-G72e5L0144-English"  (which is from 20.03.2024)


Installing:

- a fresh, clean original ja2
- unzip download over it, overwrite when asked
- set desired resolution in IniEditor
- optional: make some settings in cnc-ddraw.exe (fullscreen, windowed, fps-rate, etc - stuff like that)
- start

--

better not try to unzip it over an already existing 1.13-install when troubleshooting or testing stuff

make a complete fresh install

that way you can eliminate any doubts if there might has been an issue due to install

--

weapon:

create graphics for sti-files

three sizes are required

an estimate of what's a good size can be seen when opening one of the Gun...sti in BigItems

size of md should be about half that size and size of sm again roundabout half size of the previous

take care of matching transparancy colour (i.e. full blue for big and md, but black for sm)

md and sm require those outlines in full green

use the pipette to get exact colour if unsure

add the sti-files

big one goes into "BigItems"

at the moment of writing this, the highest number used in newest version from gitHub is Gun374.sti

so your new number would be Gun375.sti in this case  (always one number higher than the last you see there)

at "Interface" there is MDGuns.sti

open it with stiEditor

go to last index, which is 374 (in newest version from gitHub at the moment of writing)

hit the "+" to open next index, that will be 375

add your .bmp of md-picture in there (with "replace existing bmp")

the some goes for sm

"Tileset/0"

SMGuns.sti

do the same as for md, just use your picture for sm this time

new index will be 375 there as well

-

add new item at bottom of items.xml

at the time of writing this, the last item is 1762, so your new one should be 1763

now, there's the graphic-number tag

this will be 375 (the same number you've used for all three of the sti-files)

class index should be 1763

-

add new weapon to bottom of weapons.xml

should be index 1763 (same as in class index of items.xml)

-

that's assuming that you've set all tags correctly in items and weapons.xml

if you've just copypasted them and adjusted the abovementioned numbers, it should be ok

take a look at existing weapons to get the idea, better a common weapon to test things, not one with any special abilities

i.e., don't use something like the XM-29 OICW (a combination of launcher and gun) as template, just a plain gun

save all changed files

start a new game (no loading of a save, start a fresh new game)

then test the weapon ingame

--

bonne chance and thumbs up



-------------

As for that "unhandled exception"-error you've faced when using the old 1.13 version fom last year, try to check the error logs in Profiles/UserProfile_JA2113
Depending on what else it says in there, it may can give a hint about what has happened
i.e. did it say where that expception happened?

[Updated on: Fri, 29 March 2024 01:53]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
 
Read Message
Read Message
Read Message
Previous Topic: Fastest/most efficient way to test new items in game? (Solved!!)
Next Topic: A semi-useless explenation about WeaponClass.xml?!?
Goto Forum:
  


Current Time: Mon Dec 02 23:10:27 GMT+2 2024

Total time taken to generate the page: 0.00672 seconds