Jump to content


Photo

Tips and Tricks of the Trade


  • Please log in to reply
31 replies to this topic

#1 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 28 March 2005 - 05:44 PM

I'm gonna start this thread in particular to augment the User Submitted section. This is set up specifically to share little tricks and such that one may have figured out along the way.

You can certainly post a link to a thread where you may have figured something out and we can keep a reference of it here. That way in time as threads become old, we can easily acces this thread to locate those ideas.

#2 pabtyf

pabtyf

    T3A Forum Moderator

  • Project Team
  • 209 posts
  • Location:wales, uk
  • Projects:Finally finished my degree!!!!
  • Division:T3A Staff

Posted 01 April 2005 - 09:45 AM

Using an LOTR.STR file to add strings to the game.

I found this method alot easier than editing the csf file all the time.

download this:

http://members.lycos...pabtyf/lotr.str
it's about 500k


it's an english lotr.str file (patch 1.01 version)

open it in notepad.
REMOVE THE LAST BIT OF CODE E.G.

"
END


to add your entries to this, follow this format, (doesn't matter where in the file they go.)

CONTROLBAR:AngmarBlade
"Blade of Angmar"
END

CONTROLBAR:ToolTipAngmarBlade
"+100 Damage, +100 Armor"
END


then put the file in your

C:\Program Files\EA GAMES\The Battle for Middle-earth ™\data

directory. It'll read that instead of the csf file

if you need version 1 let me know I have that too.

Edited by pabtyf, 01 April 2005 - 06:00 PM.


#3 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 01 April 2005 - 09:56 AM

nice addition, I may use that myself. :)

#4 pabtyf

pabtyf

    T3A Forum Moderator

  • Project Team
  • 209 posts
  • Location:wales, uk
  • Projects:Finally finished my degree!!!!
  • Division:T3A Staff

Posted 01 April 2005 - 10:06 AM

How to make an STR file (for other languages).

Open your csf file with CSFEditor.
Select 'File' / 'Export' / 'to ini'

save it somewhere as LOTR.INI (NOT in the lang folder of bfme, stick it on your desktop or something.)

next, open that new ini file with a hex editor (theres one here: http://the3rdage.net/tools.php).

you can delete this bit:
[Header]
Language=0

[Table]

then find the replace function. (in the one mentioned above it in 'search'/replace')


you need to replace the following HEX strings in THIS ORDER!!

0D 0A

with

22 0D 0A 45 4E 44 0D 0A 0D 0A.


3D

with

0D 0A 22

And finally:

7C

with

5C 6E


Then save the file into your :
C:\Program Files\EA GAMES\The Battle for Middle-earth ™\data
as LOTR.STR.

once saved, open it in notepad go to the end of the file and remove the extra:
"
END

statement.

then you're finished.. :)

you can then edit it as mentioned above.

Edited by pabtyf, 01 April 2005 - 05:58 PM.


#5 pabtyf

pabtyf

    T3A Forum Moderator

  • Project Team
  • 209 posts
  • Location:wales, uk
  • Projects:Finally finished my degree!!!!
  • Division:T3A Staff

Posted 01 April 2005 - 12:34 PM

Here's a quick guide to using WDump for figuring out texture setting for renx.:

http://bb.1asphost.c...ptute/wdumptute

You'll have to be quick, my bandwidth runs out loads on that site, and my other host is down, will ammend the link when I can.

#6 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 19 May 2005 - 09:42 AM

I've found a useful little tidbit. If you want to add new entries for gamedata, weapons and armor. You can just take your entries on thier own ini file and place them in the data/ini/objects folder and will work overriding the existing entries.

This is the perfect method for using the -mod command for custom BIG files.

#7 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 19 May 2005 - 04:09 PM

could that work for command points (population i mean) or do you have to create maps.ini ? ;)
Software is like sex; it's better when it's free ~Linus Torvald

#8 The Witch-King of Angmar

The Witch-King of Angmar
  • Members
  • 49 posts

Posted 20 May 2005 - 05:22 PM

if u want to edit command points, all you have to do is edit gamedata.ini. it takes no ini editing skill whatsoever

#9 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 20 May 2005 - 05:43 PM

gamedata.ini is the main problem Hostile mentionned
it isnt read with the -mod command
Software is like sex; it's better when it's free ~Linus Torvald

#10 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 20 May 2005 - 09:06 PM

Works with ANY gamedata info. You can even have your gamedata chunk in it's own BIG folder and as long as it's in original INI file was in data/ini/object folder and the custom BIG is in the games root directory, you're good to go.

#11 nickthemenace

nickthemenace

    Im a legend, lets face, I actually am.

  • Project Team
  • 426 posts
  • Location:Chatham, UK
  • Projects:HeroMod, Other Stuff :)
  •  T3A Team Chamber Member
  • Division:T3A Moderator

Posted 30 May 2005 - 11:13 PM

Most people probably know this already, but to turn off the team colours (on units etc) just go into gamedata.ini and change:

EnableHouseColor = Yes

To No.. Works for me anyway!
nickthemenace
http://nickthemenace.gamemod.net/
The Guy Who Made It Possible To Have New Factions (And Stuff)(Before anyone else :p)
Posted Image

#12 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 30 May 2005 - 11:40 PM

Most people probably know this already, but to turn off the team colours (on units etc) just go into gamedata.ini and change:

  EnableHouseColor = Yes

To No.. Works for me anyway!

<{POST_SNAPBACK}>


i edited all the objects file :dry:
Software is like sex; it's better when it's free ~Linus Torvald

#13 nickthemenace

nickthemenace

    Im a legend, lets face, I actually am.

  • Project Team
  • 426 posts
  • Location:Chatham, UK
  • Projects:HeroMod, Other Stuff :)
  •  T3A Team Chamber Member
  • Division:T3A Moderator

Posted 31 May 2005 - 12:12 AM

hehe my friend did this aswell, twice!
nickthemenace
http://nickthemenace.gamemod.net/
The Guy Who Made It Possible To Have New Factions (And Stuff)(Before anyone else :p)
Posted Image

#14 Kelso

Kelso

    BFME Admin

  • Project Team
  • 1,467 posts
  • Projects:Rise of Rome, Rise of Rome 2
  •  AWD and T3A Team Chamber Leader
  • Division:BFME
  • Job:Designer: Rise of Rome 1 and 2

Posted 06 June 2005 - 02:58 AM

I don't know if anyone else has run into this problem, but I have. If you are using EA's AssetCacheBuilder program and after running it you get an error in the error log that says something like:

Internal Hierarchy is named WhatEverYourMeshNameIs, could not get info for WhateverYourMeshNameIs

The problem is that the name of your model is too long. Shortening it will solve the issue.
Posted Image
Posted Image

#15 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 06 June 2005 - 09:19 AM

Yeah, it's 18 or 19 characters (excluding the file type tag) that's the limit.

Posted Image
Posted Image


#16 halbarad

halbarad

    lone wanderer

  • Project Team
  • 466 posts
  • Projects:RA, tinkering...
  •  random guy

Posted 06 June 2005 - 11:33 AM

this is the same for sy's asset editor that i still use, it has to be 15 or less characters in total _SKN is included

otherwise it will not add it at all

this is actually the major problem with adding models to the asset file that people have
Now for Wrath, Now for Ruin, and for a Red Dawn...

#17 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 27 August 2005 - 08:50 PM

Open your csf file with CSFEditor.
Select 'File' / 'Export' / 'to ini'

save it somewhere as LOTR.INI (NOT in the lang folder of bfme, stick it on your desktop or something.)

next, open that new ini file with a hex editor (theres one here: http://the3rdage.net/tools.php).

you can delete this bit:

[Header]
Language=0

[Table]

then find the replace function. (in the one mentioned above it in 'search'/replace')


you need to replace the following HEX strings in THIS ORDER!!

0D 0A

with

22 0D 0A 45 4E 44 0D 0A 0D 0A.


3D

with

0D 0A 22

And finally:

7C

with

5C 6E


Then save the file into your :
C:\Program Files\EA GAMES\The Battle for Middle-earth ™\data
as LOTR.STR.

once saved, open it in notepad go to the end of the file and remove the extra:
"
END

statement.

<{POST_SNAPBACK}>


I'm having some trouble with this. As I've been using a csf file for the longest time (no one told me str works better until too late), I have over a hundred entries that I don't want to have to rewrite. So I tried the above method of making an str file from a csf. The end product, however, didn't turn out quite right, so I have a couple questions regarding the hex editting.

When replacing the Hex strings, do we use "replace all?". Also, when replacing with this:

22 0D 0A 45 4E 44 0D 0A 0D 0A.


is the period included?

Thanks.

Posted Image
Posted Image


#18 Lord Of Gifts

Lord Of Gifts

    I'm not corrupt, I'm morally flexible.

  • Hosted
  • 889 posts
  • Location:Canada
  • Projects:Battle for the Galaxy, EaWZone, Spy Mod
  •  Ph34r the blue text!
  • Division:EaWZone
  • Job:Webmaster and Modding Community Leader

Posted 27 August 2005 - 10:43 PM

Yes, you use 'replace all' and no, the period is not included.

#19 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 28 August 2005 - 12:20 AM

Thank ya kindly.

Posted Image
Posted Image


#20 Lord Dragonclaw

Lord Dragonclaw

    I am Epic.

  • Project Team
  • 611 posts
  • Location:Florida
  • Projects:None
  •  Epic.

Posted 28 August 2005 - 03:36 PM

I did that and my game wont run when i start the mod. I get no error only the game wont start it gets to the 2nd box thing and stays frozen forever &*^@%
Posted Image
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users