Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » 1.13 Modding Questions
1.13 Modding Questions[message #264144] Sat, 02 October 2010 19:11 Go to next message
Batman is currently offline Batman

 
Messages:363
Registered:January 2001
Location: Gotham City
When designing a new MOD with 1.13, do changes to the TableData files need to be stored in the custom UserProfile_XXXX folder, or do they need to be stored in the Data-1.13 folder?

The same question for bigitems, interface, binarydata and the like.

Also, is there a way to turn OFF facilities?

Report message to a moderator

Master Sergeant

Re: 1.13 Modding Questions[message #264147] Sat, 02 October 2010 19:49 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3641
Registered:July 2009
Part 1: It doesn't really matter. Newer 1.13 versions have the Virtual File System, defining a hierarchy in which one file overrides the same file in a lower tier folder. A userprofile is usually the top priority, the old slf archives lowest. The game starts looking for a certain file in the top folder and goes further down the list until it finds said file. Just keep the folder structure in every data folder intact (i.e. place items.xml always in Data-[whatever]\tabledata\).
So to keep it clean and reversible, it's best to put your mod files into its own folder.

Example:
UserProfile[YourMod] which contains save games and settings

Data-[YourMod], containing all files you changed

Data-1.13, containing the basic 1.13 files,

Data, containing the original game files.

Part 2:
You can't really turn them 'off', but the facilties.xml and facilitytypes.xml in the basic 1.13 SVN only contain the facilities that were present in vanilla JA2 + one needed to ensure militia training in every city sector.

Report message to a moderator

Captain

Re: 1.13 Modding Questions[message #264161] Sun, 03 October 2010 01:46 Go to previous messageGo to next message
Batman is currently offline Batman

 
Messages:363
Registered:January 2001
Location: Gotham City
Thank you DepressivesBrot for the info...

One more question, It looks like mines have been externalized, but I can't find where... any help?

Report message to a moderator

Master Sergeant

Re: 1.13 Modding Questions[message #264163] Sun, 03 October 2010 09:11 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3641
Registered:July 2009
Mines are now externalized in initmines.lua, fairly recent and thus only available in the MP branch of the SVN though.

Report message to a moderator

Captain

Re: 1.13 Modding Questions[message #264168] Sun, 03 October 2010 15:33 Go to previous messageGo to next message
Batman is currently offline Batman

 
Messages:363
Registered:January 2001
Location: Gotham City
I saw reference in the source code for this filename "initmines.lua" but can't find the file anywere. You say it's in the MP branch (Multiplayer?) so does this mean if I compile the source code that I have (apparently without MP), it won't work?

(Sorry for so many questions)

Report message to a moderator

Master Sergeant

Re: 1.13 Modding Questions[message #264169] Sun, 03 October 2010 15:40 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3641
Registered:July 2009
If you have references to this file in your code, chances are good you have the current one. But there are also additional data files in the MP branch (also known as 'the beta', because at the moment, it's actually more of a general testing field for new features). I guess you only got the Build directory, you have to get the GameDir as well.
https://81.169.133.124/source/ja2/branches/Wanne/JA2 1.13 MP

Report message to a moderator

Captain

Re: 1.13 Modding Questions[message #264170] Sun, 03 October 2010 16:08 Go to previous messageGo to next message
Batman is currently offline Batman

 
Messages:363
Registered:January 2001
Location: Gotham City
In looking at the link you supplied, I saw the initmines.lua file in the scripts folder (as referenced by the code), but I got the GameDir folder that I'm using from this location...

https://81.169.133.124/source/ja2_v1.13_data/GameDir

It appears I'm using the wrong GameDir...

Report message to a moderator

Master Sergeant

Re: 1.13 Modding Questions[message #264173] Sun, 03 October 2010 16:50 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3641
Registered:July 2009
Yeah, admittedly, it's all a bit confusing at the moment.

The last official release is SVN 1241/ rev 3356, basically unchanged since spring. All the new developments were then moved to the MP branch. You need both GameDirs to play, the beta one only contains added/updated files. The current source is also the one in the MP directory.

Report message to a moderator

Captain

Re: 1.13 Modding Questions[message #264175] Sun, 03 October 2010 17:07 Go to previous message
smeagol is currently offline smeagol

 
Messages:2704
Registered:June 2008
Location: Bremen, Germany
DepressivesBrot
Yeah, admittedly, it's all a bit confusing at the moment.



A bit confusing? lol


Report message to a moderator

Lieutenant

Previous Topic: Modding in ACR into 1.13, pre-planning
Next Topic: How to create a new Weapon?
Goto Forum:
  


Current Time: Thu Jun 11 23:07:13 GMT+3 2026

Total time taken to generate the page: 0.00808 seconds