Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-04-2006, 04:06 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Rawr.. things needed for the OLE

Ooookay Stefan you asked me to post it.. here is everything WE NEED for the OLE.
  1. level.npc object this should be an multilevel array.. ie:
    level.npc[npcID] = {script,of,npc,line,by,line};
    so lets say NPC ID 1's script is this:
    NPC Code:

    function onCreated(){
    player.chat="Hello!";
    }


    level.npc[1]=={"function onCreated(){","player.chat=""Hello!"";","}"}

    Get it? So level.npc[1] would be an array of the script of that npc, where each index of the array is a line in the script.
  2. level.sign/link/chest object improvement currently these objects are pretty pointless.. we cant modify them and things like level.link does not even include destination level!! These objects NEED to be able to be modified serverside and all the attributes of these objects need to be loaded into the object.. link the signs x,y,w,h etc!
  3. level.save() function this function needs to be made so that once modifications are made to the level object (ie: signs, npc, links) the changes can be saved into the NW file.

Seriously though Stefan.. I have been trying to do all this stuff for a while and it just doesn't seem possible without it.. at least not to make all this stuff effectively.

I made a script to load the local NPC's in a level by parsing the .nw file.. but it does not work on gmaps because I use the NPC ID to find which script to load from the NW file (the ID in inside levels is the order in which they appear in the .NW file so its easy) It would be just so much easier.. and I doubt too much work on your end, to make this in the NPC-Server x-x

Not to mention that there is no way to edit levels now aside from tiles.. because you cant save* anything (savelines or anything) so I do not know how you expect us to do any of this x-x

Thanks!

Last edited by Warcaptain; 06-04-2006 at 04:59 AM..
Reply With Quote
  #2  
Old 06-04-2006, 04:10 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Great suggestions, would actually come in handy.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #3  
Old 06-04-2006, 12:19 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You can request the script with requesttext, need to check if it's working for local npcs now
Reply With Quote
  #4  
Old 06-04-2006, 05:36 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
You can do this for all NPC's??

What about saving the script?

What is the syntax for requesting it?

What about the rest of the things I requested.
Reply With Quote
  #5  
Old 06-05-2006, 01:19 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Also would be nice if "TILES" worked for showimgs too, instead of just GuiDrawingPanels
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #6  
Old 06-07-2006, 03:19 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
So, remind me...
Why can't you just write to the level as text?
Reply With Quote
  #7  
Old 06-07-2006, 03:36 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
You can not write to files in the levels folder, at least not with save*() functions.
Reply With Quote
  #8  
Old 06-07-2006, 03:42 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by Warcaptain
You can not write to files in the levels folder, at least not with save*() functions.
Yes you can.
I recently replaced all of my overworld's tile bushes with NPCs by writing directly to the level as text.
levels/overworld_*
Reply With Quote
  #9  
Old 06-07-2006, 04:53 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I completely agree with Maniaman's post. I would love to see these things implemented.

Quote:
Originally Posted by Warcaptain
What is the syntax for requesting it?
I'm curious about that too (more specifically, the parameters for requesttext for requesting level scripts).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #10  
Old 06-07-2006, 05:53 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
requesttext("npc",id) is for DB npcs... but level npc's I do not think there is yet a way.
Reply With Quote
  #11  
Old 06-07-2006, 02:22 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Quote:
Originally Posted by Warcaptain
You can not write to files in the levels folder, at least not with save*() functions.
yes you can
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #12  
Old 06-07-2006, 06:49 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Oh well, I thought I read somewhere on here that you could not.. Well that is good then. I should be able to make a local NPC editor.. except for the fact that there is no way of telling on GMAPS what NPCs are what since the npcs[index].id is for all the NPCs on the gmap.. not the local (level) npcs
Reply With Quote
  #13  
Old 06-07-2006, 09:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Ok we have made requesttext work for local npcs, there is still a problem with dummy npcs (npcs without active script which are optimized to not appear in the npcs[] list) and local npcs are not saved right now. The new npcserver is not uploaded to all machines yet.
Reply With Quote
  #14  
Old 06-07-2006, 11:03 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
findareanpcs(getmapx(player.level)*64, getmapy(player.level)*64, 64, 64) ?
Reply With Quote
  #15  
Old 06-08-2006, 11:15 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by Yen
findareanpcs(getmapx(player.level)*64, getmapy(player.level)*64, 64, 64) ?
What do you want to say?
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 09:42 PM.


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