SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-25-09, 11:35 AM   #11
GlobalExplorer
Admiral
 
Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
Default

Quote:
Originally Posted by Stiebler
COMMENT: text files first
FILE: data\cfg\text1.cfg
COMMENT: only one occurrence of submarine depth
CHANGE: submarinedepth=
TO: submarinedepth=20
CHANGE: crashdepth=
TO: crashdepth=150
FILE: data\cfg\text2.cfg
CHANGE: maxdestroyerspeed=
TO: maxdestroyerspeed=25
COMMENT: change 3rd occurrence of 'No_of_torpedoes'
CHANGE: No_of_torpedoes[3]=
TO: No_of_torpedoes=5
COMMENT: (and so on for all text files, ignoring any which do not need to be altered)

COMMENT: now the data files
FILE: data\library\data1.dat
COMMENT: change 1st occurrence of maxrange (4-byte floating variable)
CHANGE: FLOAT: maxrange
TO: FLOAT: maxrange=2000
COMMENT: change 7th occurrence of 'ArmorLevel' (4-byte integer)
CHANGE: INT: ArmorLevel[7]
TO: INT: ArmorLevel=200
FILE: data\submarine\data3.sim
COMMENT: change 3rd occurrence of 'TorpedoDoorOpen' (BYTE, probably true or false, but 16 alternatives)
CHANGE: BYTE: TorpedoDoorOpen[3]
TO: BYTE: TorpedoDoorOpen=1
Interesting idea, but why not use something like SQL?

UPDATE <section> SET <value> WHERE <condition>

The game data could either be stored in a database and manipulated via the dbms, or it could be directly manipulated with a dedicated SQL interpreter (needs to be implemented of course).
__________________

GlobalExplorer is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.