2 registered members (AndrewAMD, Akow),
1,371
guests, and 10
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Dynamic Tree Solution
[Re: Grafton]
#53554
08/31/05 01:48
08/31/05 01:48
|
Joined: Sep 2004
Posts: 260 UB,Mongolia
Olzii
OP
Member
|
OP
Member
Joined: Sep 2004
Posts: 260
UB,Mongolia
|
My idea is to place all trees at level , after we can save it to file. It will take a long time for big level. ==> Instead you can make your level's scaled top picture and draw your tree positions using some small shapes with different colors.
After you can make some functions which will determine tree positions (X,Y) from picture and also you should find Z poistions using TRACE function and write tree's (X,Y,Z) positions to INI file.
The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland
|
|
|
Re: Dynamic Tree Solution
[Re: Nadester]
#53556
08/31/05 02:26
08/31/05 02:26
|
Joined: Sep 2004
Posts: 260 UB,Mongolia
Olzii
OP
Member
|
OP
Member
Joined: Sep 2004
Posts: 260
UB,Mongolia
|
Hi Nadester,
1. If you have multiple file you can make different INI files and after changing your one level you can open tree_5.INI file for this level.
2. About security, I am using INI files for my cars, trees, lights, traffic lights, traffic rules, task_points, etc ... About security i have made following solution : - Change your all .INI file's extension to .PAK file - bind all your .PAK files to your .WRS archive. - At startup you have to load all your INI files. Then use file_cpy function to extract and copy your .PAK files from .WRS to .INI files. - After call your READ_INI functions. - That's it !
If some people want to change your ini files, it has no effect. You will overwrite your ini files from your .WRS at every startup of your game.
The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland
|
|
|
Re: Dynamic Tree Solution
[Re: Nadester]
#53558
08/31/05 02:37
08/31/05 02:37
|
Joined: Sep 2004
Posts: 260 UB,Mongolia
Olzii
OP
Member
|
OP
Member
Joined: Sep 2004
Posts: 260
UB,Mongolia
|
Why it is not secur ? You can encode your INI files. It is up to you.
The Empire of the Mongols comprised the largest continuous land empire ever, reaching from Korea to Poland
|
|
|
Re: Dynamic Tree Solution
[Re: Orange Brat]
#53560
08/31/05 13:54
08/31/05 13:54
|
Joined: Mar 2003
Posts: 569
FRAJO
User
|
User
Joined: Mar 2003
Posts: 569
|
I always add a checksum to my files, and if needed also for ini-files, but normally ini files are for changing something, mostly by user, so why make them unchageable? so if you dont want a file to be changed, create your own format. A dll plugin wouldnt be bad.
-------------------------------------------
ICQ: 242543712
Ich bin nicht hier und bin nicht da.
Wo bin ich dann?
".."
("")
^ ^
This is the evil vampire bunny. Copy and paste him into your signiture to help him achieve world domination. Yeah
|
|
|
|