LOD TXT files those don't work

Mods and development for mods. Including WoG & Equilibris (RU) subforums.
User avatar
Artas1984
Assassin
Assassin
Posts: 284
Joined: 06 Jan 2007
Location: Vilnius

LOD TXT files those don't work

Unread postby Artas1984 » 03 Oct 2007, 21:38

After long time of editing lots of TXT files from H3bitmap.LOD i am very disappointed now...

Man, i wasted so much time now to find out that the only important files those work in data are:

CRTRAITS
HCTRAITS

And all other important files which i modified like SPTRITS or SSTRAITS bail, some even cause crash like BUILDING...

Howcome they don't work?

User avatar
Pol
Admin
Admin
Posts: 10081
Joined: 29 Nov 2005
Location: IN SOMNIS VERITAS
Contact:

Unread postby Pol » 03 Oct 2007, 21:56

They are connected with other data in exe file. However more trait files is working try to look on undeadhalforc balance patch or yasmiel fireball mod.
{Search forum, I don't know links from head, will be in h1-4 section though}
"We made it!"
The Archives | Collection of H3&WoG files | Older albeit still useful | CH Downloads
PC Specs: A10-7850K, FM2A88X+K, 16GB-1600, SSD-MLC-G3, 1TB-HDD-G3, MAYA44, SP10 500W Be Quiet

User avatar
Corlagon
Archangel
Archangel
Posts: 1421
Joined: 03 Sep 2007
Location: HC/CH

Unread postby Corlagon » 07 Oct 2007, 11:14

That's funny. All of those files work for me when I edit them. SPTRAITS is fine. I used it recently to create a new spell system, much like Heroes IV's one. Are you using the tab key between every changed value?

User avatar
Artas1984
Assassin
Assassin
Posts: 284
Joined: 06 Jan 2007
Location: Vilnius

Unread postby Artas1984 » 07 Oct 2007, 13:44

The TAB space is not present everywhere, but i keep in mind to keep a TAB distance between values.

Now why other files do not work?

For example in SSTRAITS if i change the sorcery skill expert value from 15 % to 50 % to deal spel combat damage, the spell still does 15 % more damage, not 50 %.

Or if i change the value of how much gold should the capitol provide per day from 4000 to 10000, it still provides 4000.


So what's up?

User avatar
Corlagon
Archangel
Archangel
Posts: 1421
Joined: 03 Sep 2007
Location: HC/CH

Unread postby Corlagon » 08 Oct 2007, 20:14

Secondary skills are hard coded and can only be changed through ERM or programming, neither of which I consider myself very good at. SSTRAITS.txt only contains the skill descriptions, not the gameplay values. The value for Sorcery you changed only altered the text displayed when you right-click the skill, and didn't affect the spell damage and whatnot. That's hard coded. ;|

As for the buildings, I'm not sure which file you edited but sadly I don't think building functions can be edited either - only costs and descriptions. You could alter the capitol's income with an ERM script though.

Unfortunately, the text files can only go so far, but you can still use them to edit all artifact properties, spell ranks and schools, creature stats, costs, and a few other things.

User avatar
Artas1984
Assassin
Assassin
Posts: 284
Joined: 06 Jan 2007
Location: Vilnius

Unread postby Artas1984 » 08 Oct 2007, 21:27

So there are hard coded text files and direct access text files?

User avatar
Corlagon
Archangel
Archangel
Posts: 1421
Joined: 03 Sep 2007
Location: HC/CH

Unread postby Corlagon » 08 Oct 2007, 21:43

No, just direct text files. Anything else is coded deep inside the game and can't be changed, unless you're good with ERM or the head of the WoG project.

BAD23ro

Unread postby BAD23ro » 14 Oct 2007, 10:29

Artas1984 wrote:The TAB space is not present everywhere, but i keep in mind to keep a TAB distance between values.

Now why other files do not work?

For example in SSTRAITS if i change the sorcery skill expert value from 15 % to 50 % to deal spel combat damage, the spell still does 15 % more damage, not 50 %.

Or if i change the value of how much gold should the capitol provide per day from 4000 to 10000, it still provides 4000.


So what's up?

Well, erm and asm are the only ways to change that.

You need to know at least basic asm to make the changes via executable.

For instance:
========

You want expert sorcery to do 50% more damage at expert via executable. (flat code is 9a99193e which means 15% damage).

If want to make 50%, you need to make this code: 0000003f
Last edited by BAD23ro on 13 Jul 2009, 06:27, edited 1 time in total.

User avatar
Ya5MieL
Marksman
Marksman
Posts: 428
Joined: 06 Jan 2006
Location: Kutjevo, Croatia

Unread postby Ya5MieL » 15 Mar 2008, 23:14

Corlagon wrote:No, just direct text files. Anything else is coded deep inside the game and can't be changed, unless you're good with ERM or the head of the WoG project.
Actually, its possible to edit as well, just not with simple text files. Needs editing .exe file.
Lol nevermind, bad already said the same thing.

BAD23ro

Unread postby BAD23ro » 16 Mar 2008, 01:43

B-)
Last edited by BAD23ro on 13 Jul 2009, 06:27, edited 2 times in total.

User avatar
Ya5MieL
Marksman
Marksman
Posts: 428
Joined: 06 Jan 2006
Location: Kutjevo, Croatia

Unread postby Ya5MieL » 16 Mar 2008, 03:37

Yes, wog is easily done by erm, unfortunately ppl around me donl like wog and prefer these simple changes.

Thanks very much for the offsets!

User avatar
Artas1984
Assassin
Assassin
Posts: 284
Joined: 06 Jan 2007
Location: Vilnius

Unread postby Artas1984 » 16 Mar 2008, 10:10

Wow great, must downlaod that hexeditor and learn soemthing out! :)

User avatar
Pol
Admin
Admin
Posts: 10081
Joined: 29 Nov 2005
Location: IN SOMNIS VERITAS
Contact:

Unread postby Pol » 16 Mar 2008, 10:20

Working with hex edit or assembler is basically not so much easy. Actually just programming in C it's lightweight task to that.

That's because here is difference if you just want to do some value switch, or trace where is it...
"We made it!"
The Archives | Collection of H3&WoG files | Older albeit still useful | CH Downloads
PC Specs: A10-7850K, FM2A88X+K, 16GB-1600, SSD-MLC-G3, 1TB-HDD-G3, MAYA44, SP10 500W Be Quiet

BAD23ro

Unread postby BAD23ro » 16 Mar 2008, 20:08

Pol wrote:Working with hex edit or assembler is basically not so much easy.

Asm isn't so easy, but I prefer ASM :)

BAD23ro

Unread postby BAD23ro » 16 Mar 2008, 20:12

Artas1984 wrote:Wow great, must downlaod that hexeditor and learn soemthing out! :)
Get an hexeditor, but I still need you to warn you that are in float 32 and I gave you an example for sorcery.


For instance:
========

You want expert sorcery to do 50% more damage at expert via executable. Flat code is 9a99193e which means 15% damage).

If want to make 50%, you need to make this code: 0000003f(Little Endian aka Intel).

Is important this because if will be 3f000000(Big Endian) will get 8.8 more times and that's wrong.


So, remember, for Heroes II, III, IV you need Little Endian aka Intel.
Last edited by BAD23ro on 13 Jul 2009, 06:28, edited 1 time in total.

User avatar
Ya5MieL
Marksman
Marksman
Posts: 428
Joined: 06 Jan 2006
Location: Kutjevo, Croatia

Unread postby Ya5MieL » 16 Mar 2008, 20:56

Keep in mind that while some values are float, other are still simple integers. It makes sense but could lead to errors to beginners in ASM.

BAD23ro

Unread postby BAD23ro » 16 Mar 2008, 23:07

Exactly :)

User avatar
Artas1984
Assassin
Assassin
Posts: 284
Joined: 06 Jan 2007
Location: Vilnius

Unread postby Artas1984 » 27 Mar 2008, 17:40

Ok, now tell me where and what should i paste.

I opened SSTRAITS and changed the values in Hexedit, saved the files, inserted the configuration file in Config and the text file in Data. That ain't the thing, right? Ok, wth are those offsets, i don't see a god damned thing.

BAD23ro

Unread postby BAD23ro » 28 Mar 2008, 08:33

Artas1984 wrote:Ok, now tell me where and what should i paste.

I opened SSTRAITS and changed the values in Hexedit, saved the files, inserted the configuration file in Config and the text file in Data. That ain't the thing, right? Ok, wth are those offsets, i don't see a god damned thing.
The changes must be done in main executable, not in SSTRAITS.

So, get an hexeditor, open H3 exe and look for the offsets that I gave you.

User avatar
Artas1984
Assassin
Assassin
Posts: 284
Joined: 06 Jan 2007
Location: Vilnius

Unread postby Artas1984 » 28 Mar 2008, 10:57

Ok, in hex editor, should i insert new strings as your suggested "off-sets" for custom secondary skills?

Because when i search for your written "off-sets" as "find strings", there are no...


Return to “Modcrafting Guild”

Who is online

Users browsing this forum: No registered users and 3 guests