Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-14-2005, 04:22 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Scripting: Line Counter

Maybe a level editor and RC add-on which shows the line that you are currently in as you are scripting. Maybe in like a box on one of the sides or so.

Example:

NPC Code:

//#CLIENTSIDE <--While typing this it would read: Line 1
if (created) <--While typing this it would read: Line 2
{ <--While typing this it would read: Line 3
actions; <--While typing this it would read: Line 4
} <--While typing this it would read: Line 5




Also: Possibly an add-on where everything added (scripted) to/on NC is given a line count number on the side of it.


Would be useful for reading errors given by the GS2 script compiler and would really just make things easier for servers that need to fix certain parts of scripts and they would be able to describe which part is needed fixing by giving the line count (example: Lines 20 through 26) to the NAT(s) of the server.
Reply With Quote
  #2  
Old 06-14-2005, 04:52 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
that would only be useful if you script in that style. some people still do the whole

NPC Code:

if (playertouchsme) {message hai;} if (strequals(#a,Gerami)) {if (playerenters) {show;}}

__________________
Reply With Quote
  #3  
Old 06-14-2005, 05:03 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Gerami
that would only be useful if you script in that style. some people still do the whole

NPC Code:

if (playertouchsme) {message hai;} if (strequals(#a,Gerami)) {if (playerenters) {show;}}


That is HORRIBLE styling. The longest script I've ever scripted is 204 lines long. If I scripted in that style for 204 lines, I'd go crazy.
Reply With Quote
  #4  
Old 06-14-2005, 04:58 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
I don't think that '//#CLIENTSIDE' should count, but the idea is good.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #5  
Old 06-14-2005, 09:31 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
Would be better..
__________________
Reply With Quote
  #6  
Old 06-14-2005, 10:40 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
The client TextEditor has a line # display on it.
__________________
Liek omigosh.

Reply With Quote
  #7  
Old 06-14-2005, 10:50 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Ajira
The client TextEditor has a line # display on it.
Yes, if people are happy using the client-rc. At least the Linux RC has it.
__________________
Skyld
Reply With Quote
  #8  
Old 06-15-2005, 11:59 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
Quote:
Originally Posted by Skyld
Yes, if people are happy using the client-rc. At least the Linux RC has it.
It is planned that the Linux-RC will be back-ported to Windows, probably in a few weeks (needs drag&drop stuff like in the Windows RC)
Reply With Quote
  #9  
Old 06-16-2005, 12:14 AM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
That picture looks like the SDL example.

Quote:
Originally Posted by Stefan
It is planned that the Linux-RC will be back-ported to Windows, probably in a few weeks (needs drag&drop stuff like in the Windows RC)
Some krazy order, but sounds good, that linux RC's great.
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #10  
Old 06-16-2005, 03:33 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Quote:
Originally Posted by Fry
That picture looks like the SDL example.


Some krazy order, but sounds good, that linux RC's great.
Yea, its out of an SDL tutorial.

You guessed that because of the letter SDL everywhere?

Last edited by Gman4pwnu; 06-16-2005 at 07:51 AM..
Reply With Quote
  #11  
Old 06-15-2005, 02:50 PM
URBANLEGEND URBANLEGEND is offline
No sleep till brooklyn!
Join Date: Sep 2002
Location: USA
Posts: 775
URBANLEGEND is on a distinguished road
Send a message via ICQ to URBANLEGEND Send a message via AIM to URBANLEGEND Send a message via MSN to URBANLEGEND Send a message via Yahoo to URBANLEGEND
i like this idea, but they should do it like Microsoft Dev C++ with each line having a number on the side.
__________________
~Urban
Reply With Quote
  #12  
Old 06-15-2005, 10:26 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
http://rafb.net/paste/results/h7f4Ay64.html
Look to the left, thats what he means.

Or here, my 1000 dollar program does it :P
Reply With Quote
  #13  
Old 06-15-2005, 11:03 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Gman4pwnu
http://rafb.net/paste/results/h7f4Ay64.html
Look to the left, thats what he means.

Or here, my 1000 dollar program does it :P


That sure as hell beat my 204 line script ;[
Reply With Quote
  #14  
Old 06-15-2005, 11:34 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Quote:
Originally Posted by Gambet
That sure as hell beat my 204 line script ;[
Picture or the random paste I pulled off of the pastebin?
Reply With Quote
  #15  
Old 06-16-2005, 04:02 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Gman4pwnu
Picture or the random paste I pulled off of the pastebin?

The picture.
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 11:26 PM.


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