Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Update Level with Online Editor (https://forums.graalonline.com/forums/showthread.php?t=87470)

Mattehy 08-18-2009 07:42 PM

Update Level with Online Editor
 
i was using online editor and everytime i say update level it removes ive already placed
PHP Code:

savelevels=true
savelevelsmessages
=false 

in the serverops is that correct what else do i need to add?

Inverness 08-18-2009 07:47 PM

Quote:

Originally Posted by GraalBible
levelsautosave=true/false

Whether or not updateboard2 changes are saved to the level file automatically (by default true). Works only if 'savelevels' is enabled as well.

Hope that helps. I don't know if it is necessary to do the board update serverside or not.

Mattehy 08-18-2009 07:57 PM

one more thing can i do updateboard2("havenworld_") or what to update the whole gmap

DustyPorViva 08-18-2009 08:15 PM

You could probably do:
findlevel("havenworld_a01.nw").updateboard2(0,0,64 ,64);

Maybe.

Mattehy 08-18-2009 08:28 PM

Would
PHP Code:

findlevel.starts("havenworld_").updateboard2(0,0,64 ,64); 

work?

WhiteDragon 08-18-2009 08:32 PM

Quote:

Originally Posted by Mattehy (Post 1516044)
Would
PHP Code:

findlevel.starts("havenworld_").updateboard2(0,0,64 ,64); 

work?

No haha, but if you want to check out a programming language that works sort of like that, look at Haskell.

What you would have to do in this case is get an array of all the levels you want to update, then loop through that array and call findlevel and updateboard2 on each one.

Mattehy 08-19-2009 07:11 PM

that be nice if knew what i you were talking about xD.

LoneAngelIbesu 08-19-2009 07:50 PM

Quote:

Originally Posted by Inverness (Post 1516021)
Hope that helps. I don't know if it is necessary to do the board update serverside or not.

I'm pretty sure it is.

Quote:

Originally Posted by Mattehy (Post 1516030)
one more thing can i do updateboard2("havenworld_") or what to update the whole gmap

Is there a reason why you want to update the whole GMAP? If it's for an online level editor, you'll only be editing one level at time, anyways.

Mattehy 08-19-2009 09:00 PM

no not really xD i just wanna learn gs2 better


All times are GMT +2. The time now is 06:41 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.