forums | blogs | polls | tutorials | downloads | rules | help

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in remember_me_form_alter() (line 78 of /var/www/siegetheday.org/sites/all/modules/contrib/remember_me/remember_me.module).

Gas file duplication

shiruba's picture

Hi there guys,

I have been away from DS since 2004 and recently came back to modding and stuff.
Currently I am reading some very old tutorials and shaking the rust from my skrit and gas skills.

I noticed something that maybe isnt a big deal, but I want to make sure that I am understanding it well.

frex. in loa/.../actors/evil/b

i have a dsx_chitterskrag.gas with the template of the chitterskrag boss.

and in /evil/d

i have the same "dsx_chitterskrag.gas" but with definitions of normal chitterskrags...

is this ok? like, I kinda remeber that only one gas file will be parsed by name, right?

can someone explain whats the deal?

BTW, i have apparently tons of mods, if you guys need something, gimme a call, and i see if its buried in the depths of my HD.

thanks everyone, and long live DS =D

Shiruba

I personally can not assist you with this but there are several modders here that are great when it comes to both the understanding of Gas files and code. I am sure one will be happy to give you a hand. Welcome to the site and have a good time

It is Dungeon Siege Forever at least this elf thinks so

Elf

shiruba wrote:
Hi there guys,

I have been away from DS since 2004 and recently came back to modding and stuff.
Currently I am reading some very old tutorials and shaking the rust from my skrit and gas skills.

I noticed something that maybe isnt a big deal, but I want to make sure that I am understanding it well.

frex. in loa/.../actors/evil/b

i have a dsx_chitterskrag.gas with the template of the chitterskrag boss.

and in /evil/d

i have the same "dsx_chitterskrag.gas" but with definitions of normal chitterskrags...

is this ok? like, I kinda remeber that only one gas file will be parsed by name, right?

can someone explain whats the deal?

BTW, i have apparently tons of mods, if you guys need something, gimme a call, and i see if its buried in the depths of my HD.

thanks everyone, and long live DS =D

Shiruba

__________________________

Welcome Shiruba.

That example will work because the two gas files are located in different folders and their internal template names are completely different since one refers to normal chitterskrags and the other to the boss version. It is sloppy work though by Mad Dog Software to have the same names for the gas files, normally you would have a chitterskrag_boss gas file to differentiate it from the other gas file.

The template names contained within the gas files are the most important things as if you have two identical template names within the same mod but in different gas files, the game will only use one. Think of gas files as containers with the templates held within them as being the most important things.

The game is a bit funny with the folders, sometimes it doesn't care where the gas files and thus templates are stored but other times it will cause the game to crash. So the best modding technique is to put gas files and templates into the same folder as similiar gas files and templates.

This is also the way you mod the game as mod files will overwrite the existing gas files and templates in the game if you use the same name and folder. So instead of having to edit the main resource files, which are often very large, all you need to do is create a mod to overwrite the information stored in the game resource files. New files can also be added this way to add new objects, etc, to the game.

I hope this explanation isn't too confusing.

shiruba's picture

Okay! i guess that helps!

Does anybody have DSMODCHK? its IMPOSSIBLE TO FIND.

thanks.

shiruba wrote:
Okay! i guess that helps!

Does anybody have DSMODCHK? its IMPOSSIBLE TO FIND.

thanks.

I searched on my computers for it but do not have it. I found links to several sites that talk about the tool for checking DS1 mod compatibility. However none of the links for downloading it appear to be active.
At one time it was a very popular tool on a majority of the Clan sites. With luck maybe someone here has a copy of it on an old computer or knows of a link that is still active. I will also ask some old modders who hang about on Internet Relay Chat if they might have it.
Elf