Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #46  
Old 04-14-2012, 09:43 PM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
There must have been some GS2 change that's breaking this, Emera.

Which is annoying, can it be fixed?
Reply With Quote
  #47  
Old 04-14-2012, 10:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by MattKan View Post
There must have been some GS2 change that's breaking this, Emera.

Which is annoying, can it be fixed?
I believe it's related to the fact I store the script in the showimg object, and it gets re-created which wipes out the script. It can be fixed it just needs to be re-written in a couple sections.
__________________
Quote:
Reply With Quote
  #48  
Old 04-15-2012, 09:30 PM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Emera, delete the weapon for it, restart the NPC Server, then reinstall and it should work.

Edit: Nope, doesn't actually work. Back to the original issue of not being able to spawn new NPCs with new images.
Reply With Quote
  #49  
Old 05-04-2012, 12:21 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Fp4 will you please fix this if you have a chance?
Reply With Quote
  #50  
Old 06-22-2012, 04:26 AM
torfbeta torfbeta is offline
CokeZero
torfbeta's Avatar
Join Date: Jun 2012
Posts: 3
torfbeta is on a distinguished road
It keeps saying this to me: Could not find the file myworld_a8.nw for this level! check your configuration.
Reply With Quote
  #51  
Old 06-22-2012, 05:10 AM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Does anyone else have problems with both the Client RC and Online Level NPC Editor both causing client crashes? (I am on a Mac and V6)

NPCs being wiped on death?

Or random Icons showing up / light effects hovering around as icons?
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
  #52  
Old 06-22-2012, 05:32 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
It probably has something to do with another script on Shaded Legend.
Reply With Quote
  #53  
Old 06-22-2012, 03:05 PM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
I have experienced client crash yes.
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote
  #54  
Old 06-22-2012, 04:11 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Devil_Lord2 View Post
Does anyone else have problems with both the Client RC and Online Level NPC Editor both causing client crashes? (I am on a Mac and V6)

NPCs being wiped on death?

Or random Icons showing up / light effects hovering around as icons?
I haven't noticed any of this on v6 on OS X.
__________________
Reply With Quote
  #55  
Old 10-27-2012, 10:35 PM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
This stopped working today...

PHP Code:
Scripttriggerclient() was used with wrong target: -Dev/NPCEditor (must be weapon or guiat line 48 in script of -Dev/NPCEditor (in level stroseria_10-05.nw at pos (00)) 
Sure it has something to do with Stefan restarting our server today and all the changes he made to triggerclient(). Will be interesting to see if the rest of our server is broken, too.
__________________
Quote:
Originally Posted by Satoru Iwata
On the other hand, free-to-play games, if unbalanced, could result in some consumers paying extremely large amounts of money, and we can certainly not expect to build a good relationship with our consumers in this fashion. In order to have a favorable long-term relationship, we would like to offer free-to-play games that are balanced and reasonable.
Quote:
Originally Posted by Unximad
Eurocenter Games remains attached to the values of indies game developer and to the service our playerbase community.
Reply With Quote
  #56  
Old 10-27-2012, 11:49 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by MattKan View Post
This stopped working today...

PHP Code:
Scripttriggerclient() was used with wrong target: -Dev/NPCEditor (must be weapon or guiat line 48 in script of -Dev/NPCEditor (in level stroseria_10-05.nw at pos (00)) 
Sure it has something to do with Stefan restarting our server today and all the changes he made to triggerclient(). Will be interesting to see if the rest of our server is broken, too.
He warned about this a few weeks ago. It shouldn't be surprising that this broke.
__________________
Reply With Quote
  #57  
Old 10-27-2012, 11:54 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Here's an updated version, I've also changed it so the script and image aren't stored in the findimg object anymore.

Edit: Fixed applying the image.
__________________
Quote:

Last edited by TSAdmin; 09-07-2013 at 08:58 PM..
Reply With Quote
  #58  
Old 10-28-2012, 01:29 AM
Kiwi27 Kiwi27 is offline
Not the fruit.
Kiwi27's Avatar
Join Date: Mar 2011
Location: New Zealand
Posts: 173
Kiwi27 will become famous soon enough
[9:56:33 AM] Vinka: Could you tell fp4 that whenever u edit an npc script within a level with olne and click apply, the line where image name is inserted turns to "-".

From Vinka.
__________________
Reply With Quote
  #59  
Old 10-28-2012, 02:48 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Kiwi27 View Post
[9:56:33 AM] Vinka: Could you tell fp4 that whenever u edit an npc script within a level with olne and click apply, the line where image name is inserted turns to "-".

From Vinka.
Fixed. Either re-download the entire script from my post above or replace the function at the bottom with this one:

PHP Code:
function onApplyScript(obj) {
  if (!
this.active) {
    
obj.parent.destroy();
    return;
  }
  
temp.npc_id obj.parent.npc_id;
  
temp.npc_script obj.parent.scriptctrl.getlines();
  
temp.npc_img obj.parent.imgctrl.text.trim();
  
obj.parent.destroy();
  
with (findimg(temp.npc_id)) {
    
image temp.npc_img;
    
image fileexists(image) ? image PLACEHOLDER;
    
temp.npc_x 64;
    
temp.npc_y 64;
  }
  
setNPCImage(temp.npc_idtemp.npc_img);
  
setNPCScript(temp.npc_idtemp.npc_script);
  if (
temp.npc_id 0) {
    
changesMade();
    
updateNPCImage(temp.npc_idtemp.npc_imgtemp.npc_xtemp.npc_ytemp.npc_script);
  }

__________________
Quote:
Reply With Quote
  #60  
Old 12-07-2012, 09:05 PM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Script: triggerclient() was used with wrong target: npcEdit (must be weapon or gui) at line 82 in script of npcEdit (in level cabi_ak-02.nw at pos (0, 0))

It keeps doing this
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 10:31 AM.


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