Creating a level via script?
Is there any way of creating a level via GScript without the conventional copylevel() function?
What I mean is creating a level file from scratch akin to the level that the GraalEditor program creates upon startup. I've tried looking for a function for this, but haven't found anything. The only way I could imagine creating a level from scratch is taking a level file on the server, use the copylevel() function to create another and write the text content of the level file somehow so that it matches the GraalEditor startup level. Any ideas? |
Have a blank level stored on the server and copylevel() that, or simply write the level manually(levels are stored as text, open a level up in wordpad) and savelines or something like that.
|
Quote:
So you're saying loadlines() works for .nw files? I can't exactly check for myself at the minute. If so, I didn't know that, so thanks! So the method I suggested at first would be the way to go about it then? |
What's so dynamic about that? You'd end up with the same result, a blank level is a blank level. And yes, levels are text so anything you could do to a text file you can do to a level.
|
Quote:
Thanks for your help. |
I think what you're after doesn't exist and has no need to exist. I don't see the problem in having a blank template level apart from the portability aspect...
|
Sorry If I misinterpret, but do you mean that you're looking for something for level generation? like for seperate people? If so then no clue. If not, then ignore what I asked.
|
Not really sure what you're asking for, but if you're trying to create levels on-the-fly and delete them afterwards, this will handle it for you.
|
All times are GMT +2. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.