Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Scripting: Line Counter (https://forums.graalonline.com/forums/showthread.php?t=59423)

Gambet 06-14-2005 04:22 PM

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.

Crono 06-14-2005 04:52 PM

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;}}


osrs 06-14-2005 04:58 PM

I don't think that '//#CLIENTSIDE' should count, but the idea is good.

Gambet 06-14-2005 05:03 PM

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.

xAndrewx 06-14-2005 09:31 PM

Would be better..

Ajira 06-14-2005 10:40 PM

The client TextEditor has a line # display on it.

Skyld 06-14-2005 10:50 PM

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.

URBANLEGEND 06-15-2005 02:50 PM

i like this idea, but they should do it like Microsoft Dev C++ with each line having a number on the side.

Gman4pwnu 06-15-2005 10:26 PM

http://rafb.net/paste/results/h7f4Ay64.html
Look to the left, thats what he means.

Or here, my 1000 dollar program does it :P
http://img139.echo.cx/img139/7335/msvc1cq.jpg

Gambet 06-15-2005 11:03 PM

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
http://img139.echo.cx/img139/7335/msvc1cq.jpg



That sure as hell beat my 204 line script ;[

Gman4pwnu 06-15-2005 11:34 PM

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?

Admins 06-15-2005 11:59 PM

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)

Fry 06-16-2005 12:14 AM

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.

Gman4pwnu 06-16-2005 03:33 AM

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? :)

Gambet 06-16-2005 04:02 AM

Quote:

Originally Posted by Gman4pwnu
Picture or the random paste I pulled off of the pastebin?


The picture.


All times are GMT +2. The time now is 10:23 PM.

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