Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #76  
Old 04-23-2015, 11:29 AM
Anero Anero is offline
Era iPhone PRA
Anero's Avatar
Join Date: Mar 2015
Location: Germany
Posts: 29
Anero is an unknown quantity at this point
Pretty useful tool. Thumbs up!
Reply With Quote
  #77  
Old 04-23-2015, 01:06 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Is there a tool similar to a notepad? So you can view all NPCs in the level like a text editor and modify the scripts that way?
__________________
Reply With Quote
  #78  
Old 04-23-2015, 06:08 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Notepad ++ ?
__________________
Reply With Quote
  #79  
Old 04-24-2015, 02:47 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Yeah, just opening up a NW file with notepad / wordpad should allow you to edit the file directly, although you'll have to kind of blindly place the NPCs unless you know exactly where their coordinates are going to be.

It's especially useful for checking levels for script errors or to make sure nobody's trying to hide a script that tampers with the game.
Reply With Quote
  #80  
Old 04-24-2015, 02:32 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Draenin View Post
Yeah, just opening up a NW file with notepad / wordpad should allow you to edit the file directly, although you'll have to kind of blindly place the NPCs unless you know exactly where their coordinates are going to be.

It's especially useful for checking levels for script errors or to make sure nobody's trying to hide a script that tampers with the game.
Yeah I know, but I want an in game notepad haha.

All the iEra staff use online tools because they're awesome

I'd use the online text editor to read all the NPCs in the level
__________________
Reply With Quote
  #81  
Old 06-20-2015, 01:38 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


All the colors are whack and it makes it hard to read. This may be a v6 problem, but has anybody run into anything similar?
__________________
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
  #82  
Old 06-20-2015, 01:52 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
Quote:
Originally Posted by MattKan View Post


All the colors are whack and it makes it hard to read. This may be a v6 problem, but has anybody run into anything similar?
I had that problem also I found out it's because the profile for the gui is assigned to SyntaxHighlightProfile but that profile isn't given in the script. I did get to fix it somewhat.

PHP Code:
new GuiScrollCtrl("LevelNPC_" temp.npc_id "_ScriptScroll") {
      
profile GuiBlueScrollProfile;
      
scrollprofile GuiBlueScrollProfile;
      
useownprofile true;
      
profile.fillColor "255 255 255";
      
profile.opaque true;
      
profile.border 1;
      
profile.bitmap "guiblue_scroll_noback.png";
      
horizsizing "width";
      
vertsizing  "height";
      
clientwidth  temp.ww;
      
clientheight temp.wh 40;
      
      new 
GuiMLTextEditCtrl("LevelNPC_" temp.npc_id "_Script") {
        
profile SyntaxHighlightProfile;
        
useownprofile true;

        
//you really just need to add this
        
profile.fontcolor "0 0 0"
        
profile.fontcolorhl "175 0 0";
        
profile.fontcolorna "0 0 0";
        
profile.fontcolorsel "0 0 0";
        
profile.fontcolorlink "255 0 255";
        
profile.fontcolorlinkhl "255 0 0";
        
profile.cursorColor = { 0,  0,  0255 };
        
profile.fillcolorhl "80 180 255";
        
profile.fontsize 15;
        
profile.fonttype  "Courier New"
        
        
        
horizsizing "width";
        
syntaxhighlighting true;
        
wordwrap false;
        
clientheight temp.wh;
        
clientwidth  temp.ww 40;
        
width -= 4;
        
        
setlines(temp.npc_script);
        
temp.scriptctrl this;

        
autoindenting true;
        
tabspaces 2;
      }
    } 
Reply With Quote
  #83  
Old 06-20-2015, 02:29 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
Thanks!
__________________
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
  #84  
Old 06-24-2015, 07:30 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by xXziroXx View Post
Figured I'd share this
Figured I'd link you to the proper thread
__________________
MEEP!
Reply With Quote
  #85  
Old 06-24-2015, 07:33 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
Quote:
Originally Posted by MattKan View Post


All the colors are whack and it makes it hard to read. This may be a v6 problem, but has anybody run into anything similar?
Yea its not a v6 issue. I think the issue is it used old depricated profiles from the old client-rc which as been redone completely. I van grab you the new profiles if need be.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #86  
Old 06-24-2015, 08:08 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 is my fix, simply replace the whole createEditorFunction function with this:

PHP Code:
// Create Editor Window
function createEditorWindow(temp.npc_idtemp.npc_imgtemp.npc_xtemp.npc_ytemp.npc_script) {
  new 
GuiMLTextEditProfile("SyntaxHighlightLegacyProfile") {
    
fontType fileexists("DejaVuSansMono.ttf") ? "DejaVuSansMono" "Courier";
    
fontSize = (thiso.options.scriptfontsize <= 14 thiso.options.scriptfontsize);
    
cursorColor "0 0 0";
    
fillColorHL "255 255 0";
    
fontColor "0 0 0";
    
fontColorHL "192 0 0"// control words like if, else etc.
    
fontColorSEL "0 16 0"// identifiers 0,96,0
    
fontColorLink "192 0 192"// strings
    
fontColorLinkHL "0 0 255"// numbers
  
}
  new 
GuiWindowCtrl("LevelNPC_" temp.npc_id "_Window") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
this.npc_id temp.npc_id;
    
temp.ww clientwidth 600;
    
temp.wh clientheight 500;
    
= (screenwidth temp.ww) / 2;
    
= (screenheight temp.wh) / 2;
    
isexternal true;
    
text format("NPC Script Editor (X: %s Y: %s)"temp.npc_x 64temp.npc_y 64);
    
destroyonhide true;
    
thiso.trigger("CenterExternalWindow"this);
    
    new 
GuiScrollCtrl("LevelNPC_" temp.npc_id "_ScriptScroll") {
      
profile GuiBlueScrollProfile;
      
scrollprofile GuiBlueScrollProfile;
      
useownprofile true;
      
profile.fillColor "255 255 255";
      
profile.opaque true;
      
profile.border 1;
      
profile.bitmap "guiblue_scroll_noback.png";
      
horizsizing "width";
      
vertsizing  "height";
      
clientwidth  temp.ww;
      
clientheight temp.wh 40;
      
      new 
GuiMLTextEditCtrl("LevelNPC_" temp.npc_id "_Script") {
        
profile SyntaxHighlightLegacyProfile;
        
useownprofile true;
        
profile.fillcolorhl "80 180 255";
        
profile.fontcolorlink "255 0 255";
        
profile.fontsize 15;
        
        
horizsizing "width";
        
syntaxhighlighting true;
        
wordwrap false;
        
clientheight temp.wh;
        
clientwidth  temp.ww 40;
        
width -= 4;
        
        
setlines(temp.npc_script);
        
temp.scriptctrl this;

        
autoindenting true;
        
tabspaces 2;
      }
    }
    new 
GuiButtonCtrl("LevelNPC_" temp.npc_id "_ScriptClose") {
      
profile GuiBlueButtonProfile;
      
horizsizing "left";
      
vertsizing  "top";
      
clientwidth  64;
      
clientheight 32;
      
temp.ww 68;
      
temp.wh 40 4;
      
text "Close";
      
thiso.catchevent(this.name"onAction""onCloseScript");
    }
    new 
GuiButtonCtrl("LevelNPC_" temp.npc_id "_ScriptApply") {
      
profile GuiBlueButtonProfile;
      
horizsizing "left";
      
vertsizing  "top";
      
clientwidth  64;
      
clientheight 32;
      
temp.ww 68 64 4;
      
temp.wh 40 4;
      
text "Apply";
      
thiso.catchevent(this.name"onAction""onApplyScript");
    }
    new 
GuiTextEditCtrl("LevelNPC_" temp.npc_id "_Image") {
      
profile GuiBlueTextEditProfile;
      
clientwidth 256;
      
clientheight 24;
      
4;
      
temp.wh 24 10;
      
text temp.npc_img;
      
thiso.catchevent(this.name"onAction""onUpdateImage");
      
temp.imgctrl this;
    }
    
this.scriptctrl temp.scriptctrl;
    
this.imgctrl    temp.imgctrl;
  }

or re-download the script in this attachment:
Attached Files
File Type: txt olne.txt (39.2 KB, 323 views)
__________________
Quote:
Reply With Quote
  #87  
Old 06-25-2015, 07:38 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
Quote:
Originally Posted by callimuc View Post
Figured I'd link you to the proper thread
Oh gee, the facepalm is real.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #88  
Old 06-25-2015, 03:43 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
everyone in this thread should fight
Reply With Quote
  #89  
Old 06-25-2015, 05:37 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Quote:
Originally Posted by MysticalDragon View Post
Yea its not a v6 issue. I think the issue is it used old depricated profiles from the old client-rc which as been redone completely. I van grab you the new profiles if need be.
I'll stick with the one posted above for now, but it would be really nice to get the syntax highlighting colors fixed in a future update.

Any word on whether the OLNE / OLLE might be unified into one editor, or are they definitely gonna have to stay separate?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:31 PM.


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