Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-18-2009, 07:42 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
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?
__________________
Develop 4 Lyf
Reply With Quote
  #2  
Old 08-18-2009, 07:47 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #3  
Old 08-18-2009, 07:57 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
one more thing can i do updateboard2("havenworld_") or what to update the whole gmap
__________________
Develop 4 Lyf
Reply With Quote
  #4  
Old 08-18-2009, 08:15 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
You could probably do:
findlevel("havenworld_a01.nw").updateboard2(0,0,64 ,64);

Maybe.
Reply With Quote
  #5  
Old 08-18-2009, 08:28 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
Would
PHP Code:
findlevel.starts("havenworld_").updateboard2(0,0,64 ,64); 
work?
__________________
Develop 4 Lyf
Reply With Quote
  #6  
Old 08-18-2009, 08:32 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Mattehy View Post
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.
Reply With Quote
  #7  
Old 08-19-2009, 07:11 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
that be nice if knew what i you were talking about xD.
__________________
Develop 4 Lyf
Reply With Quote
  #8  
Old 08-19-2009, 07:50 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Inverness View Post
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 View Post
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.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #9  
Old 08-19-2009, 09:00 PM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
no not really xD i just wanna learn gs2 better
__________________
Develop 4 Lyf
Reply With Quote
Reply


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 +2. The time now is 03:06 AM.


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