Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Akow), 1,371 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: Dynamic Tree Solution [Re: Grafton] #53553
08/30/05 23:54
08/30/05 23:54
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
This is a cool contribution. I'm aware of James' idea, and yes that would make it even more user friendly.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
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 Offline OP
Member
Olzii  Offline 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: Grafton] #53555
08/31/05 02:11
08/31/05 02:11
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Looks cool. How about for multiple levels, with different tree.ini files? And how about security, couldn't someone just edit the tree.ini and mess up the level? Instead, why not leave all the tree models where they are in game, and then store each one's position in an array when the level is loaded, then destroy it. Sure, it might take another second to load, but it'll get rid of those issues I stated.


--Eric
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 Offline OP
Member
Olzii  Offline 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: Olzii] #53557
08/31/05 02:35
08/31/05 02:35
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
That still isn't secure, just hides it a bit better.


--Eric
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 Offline OP
Member
Olzii  Offline 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: Olzii] #53559
08/31/05 03:31
08/31/05 03:31
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
I remember Napo's old INI DLL allowed you to read/write to an encrypted INI file.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: Dynamic Tree Solution [Re: Orange Brat] #53560
08/31/05 13:54
08/31/05 13:54
Joined: Mar 2003
Posts: 569
FRAJO Offline
User
FRAJO  Offline
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
Re: Dynamic Tree Solution [Re: Grafton] #53561
09/19/05 13:28
09/19/05 13:28
Joined: Aug 2005
Posts: 186
Beneath the Surface
alpha12 Offline
Member
alpha12  Offline
Member

Joined: Aug 2005
Posts: 186
Beneath the Surface
link dead?
Code:

Not Found

The requested URL /dynamic_trees.rar was not found on this server.
Apache/2.0.52 (Fedora) Server at wap.starsoft.mn Port 80



Re: Dynamic Tree Solution [Re: alpha12] #53562
09/19/05 19:41
09/19/05 19:41
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
Link seems to be down , anyone have this script , in it's original state or altered , sounds like a very good solution to having many entities per level , being limited to a certain amount is unideal for city levels and the like , if anyone has this send me a PM , thnx in advance.

Page 2 of 4 1 2 3 4

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1