Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Scripted-RC FileBrowser (https://forums.graalonline.com/forums/showthread.php?t=134256558)

Deas_Voice 10-19-2009 07:48 PM

Scripted-RC FileBrowser
 
since i lately been forced to use linux without RC ( i did get 64bit os by misstake when i downloaded it, and i dont feel like reinstalling )
i been using scripted-rc, and what brothers me alot in the scripted-rc yet, is that in the file browser doesn't have a search future, so i got to look after a file among 100000 other files, that's a pain. in External RC you could open the folder and type the name, now i gotta look for it by scrolling.

oh and, "edit by text" would be great, for fast editing of npcs in levels!

what do you think?

fowlplay4 10-19-2009 08:02 PM

I believe you can code these kind of things into your Scripted RC yourself.

Explore the GUI Objects like so.. (You can find a lot of neat things this way :3)

PHP Code:

//#CLIENTSIDE
function onCreated() {
  for (
temp.contGUIContainer.controls) echo(temp.cont.name);


Find the GUI Object name for the Filebrowser, and add a script event function to "hook" it. I.e: Object.onKeyDown()

cyan3 10-19-2009 08:05 PM

Quote:

Originally Posted by Deas_Voice (Post 1532075)
since i lately been forced to use linux without RC ( i did get 64bit os by misstake when i downloaded it, and i dont feel like reinstalling )

It wouldn't be very hard to download the 32bit version, format your partition and install it. I reformat my Linux partition almost every month because it only takes around an hour in total to backup all my files and set everything back up again.

Quote:

Originally Posted by Deas_Voice (Post 1532075)
i been using scripted-rc, and what brothers me alot in the scripted-rc yet, is that in the file browser doesn't have a search future, so i got to look after a file among 100000 other files, that's a pain. in External RC you could open the folder and type the name, now i gotta look for it by scrolling.

oh and, "edit by text" would be great, for fast editing of npcs in levels!

what do you think?

I completely agree, especially with the internal text editor for the client rc because I also use Linux and I have to edit levels with the internal text editor within the external rc and it would be awesome if it were enabled for client rc.

On a side note after installing the Beta for Ubuntu 9.10 I swiftly switched back to 9.04 because the remote control wouldn't work on 9.10.

Quote:

Originally Posted by fowlplay4 (Post 1532078)
I believe you can code these kind of things into your Scripted RC yourself.

Explore the GUI Objects like so.. (You can find a lot of neat things this way :3)

PHP Code:

//#CLIENTSIDE
function onCreated() {
  for (
temp.contGUIContainer.controls) echo(temp.cont.name);


Find the GUI Object name for the Filebrowser, and add a script event function to "hook" it. I.e: Object.onKeyDown()

Great but it isn't really an option for most people because they'd have to get NC access to implement it. I had the same response a few months ago when I asked for an option to disable the F6 key for opening the client rc.

DustyPorViva 10-19-2009 08:10 PM

Well Tig was working on a new scripted playerlist window, which included searching that was supposed to mimic the search feature in RC, I think... maybe he and Skyld can work and get that implemented into the scripted RC.

Also, what about an /open command that would open a file directly without having to search through the browser?

Deas_Voice 10-19-2009 10:00 PM

Quote:

Originally Posted by cyan3 (Post 1532079)
It wouldn't be very hard to download the 32bit version, format your partition and install it. I reformat my Linux partition almost every month because it only takes around an hour in total to backup all my files and set everything back up again.

well, i did reinstall to 9.04 BUT the website gave me the 64bit OS somehow, and i feel that if i am gonna use linux, i gotta stop reinstalling it every time X_x
but i am probably gonna remove it and reinstall it again anyway...
and i gotta get wubi 8.10 (yes i use wubi cus i only got 15-30 gb left on this HDD) cus
9.04 wont make a boot option, so i install that and upgrade from 8.10 to 9.04 in linux.

Quote:

Originally Posted by cyan3 (Post 1532079)
On a side note after installing the Beta for Ubuntu 9.10 I swiftly switched back to 9.04 because the remote control wouldn't work on 9.10.

did u figure out why it didn't work?

Quote:

Originally Posted by DustyPorViva (Post 1532080)
Well Tig was working on a new scripted playerlist window, which included searching that was supposed to mimic the search feature in RC, I think... maybe he and Skyld can work and get that implemented into the scripted RC.

o?
then they should add a "warp to player" into the playerlist, cus it's so annoying havin to type the nickname or the account to warp to someone :(
Quote:

Originally Posted by DustyPorViva (Post 1532080)
Also, what about an /open command that would open a file directly without having to search through the browser?

combined with my idea, sure, but solo as a command isn't a good idea in my opinion.

DustyPorViva 10-19-2009 10:02 PM

Quote:

Originally Posted by Deas_Voice (Post 1532118)
combined with my idea, sure, but solo as a command isn't a good idea in my opinion.

Why not? Most of the time you already know the filename of the file you are trying to find.

Deas_Voice 10-19-2009 10:06 PM

Quote:

Originally Posted by DustyPorViva (Post 1532120)
Why not? Most of the time you already know the filename of the file you are trying to find.

true, but i think there should be an file editor and a search too.

Tigairius 10-19-2009 10:07 PM

Quote:

Originally Posted by DustyPorViva (Post 1532080)
Well Tig was working on a new scripted playerlist window, which included searching that was supposed to mimic the search feature in RC, I think... maybe he and Skyld can work and get that implemented into the scripted RC.

Also, what about an /open command that would open a file directly without having to search through the browser?

Yep, I actually planned to redo the entire file browsing system to mimic the file browser that's being used on my online level editor (which works a lot more like linux and windows file browser combined). This is all just future plans at this point... that darn time keeps slipping away no matter how hard I try to grasp it.

I can add a searching feature similar to the one I added to the new playerlist into the new file browser before I add it. Should be fairly easy.

Quote:

Originally Posted by Deas_Voice (Post 1532118)
o?
then they should add a "warp to player" into the playerlist, cus it's so annoying havin to type the nickname or the account to warp to someone :(

I did, it's on the new playerlist.

Deas_Voice 10-19-2009 10:16 PM

Quote:

Originally Posted by Tigairius (Post 1532126)
I can add a searching feature similar to the one I added to the new playerlist into the new file browser before I add it. Should be fairly easy.

nice.
what about the "edit file as text"?
~and a /open command for the file (dustys idea)

Quote:

Originally Posted by Tigairius (Post 1532126)
I did, it's on the new playerlist.

cool :)

Tigairius 10-19-2009 10:18 PM

Quote:

Originally Posted by Deas_Voice (Post 1532140)
nice.
what about the "edit file as text"?
~and a /open command for the file (dustys idea)



cool :)

Edit file as text would be simple to add, no problem there. Open command is not really because there is currently no functionality in GS2 to open a file with the default action in the operating system. So.. if you use Windows Picture Viewer to view PNGs, there is no way to trigger that with GS2 at this point. Could see if Stefan would add it.

DustyPorViva 10-19-2009 10:18 PM

Quote:

Originally Posted by Deas_Voice (Post 1532125)
true, but i think there should be an file editor and a search too.

Well my idea wasn't in opposition of yours... just an elaboration/expansion of it.

Deas_Voice 10-19-2009 10:22 PM

Quote:

Originally Posted by Tigairius (Post 1532142)
Edit file as text would be simple to add, no problem there. Open command is not really because there is currently no functionality in GS2 to open a file with the default action in the operating system. So.. if you use Windows Picture Viewer to view PNGs, there is no way to trigger that with GS2 at this point. Could see if Stefan would add it.

dur, i think u misunderstood the idea,
u chat something like "/openfile osl.nw" in the scripted-rc and a guiwindow comes up with the text that the level contains ( like if u opened the level with a text editor but in graal ) and u could edit and save it.

while we're at it, what's with the "trade" in the current playerlist?
i mean, if u want to trade grelat items u go to the shop, having "trade" in the playerlist only confuses the player on a server where u can trade stuffs (Era, GK ect)

Quote:

Originally Posted by DustyPorViva (Post 1532143)
Well my idea wasn't in opposition of yours... just an elaboration/expansion of it.

oh okey :)

Tigairius 10-19-2009 10:41 PM

Quote:

Originally Posted by Deas_Voice (Post 1532144)
dur, i think u misunderstood the idea,
u chat something like "/openfile osl.nw" in the scripted-rc and a guiwindow comes up with the text that the level contains ( like if u opened the level with a text editor but in graal ) and u could edit and save it.

while we're at it, what's with the "trade" in the current playerlist?
i mean, if u want to trade grelat items u go to the shop, having "trade" in the playerlist only confuses the player on a server where u can trade stuffs (Era, GK ect)


oh okey :)

Ah.. could add that too, shouldn't be hard.

Trade was used because it was expected that trading would be popular but no reason to discuss that... I can ask if it's ok to remove it.

DustyPorViva 10-19-2009 10:42 PM

Well, there should be an /open and /opentext -- two separate commands.

cyan3 10-20-2009 12:39 AM

Quote:

Originally Posted by Deas_Voice (Post 1532118)
did u figure out why it didn't work?

I haven't found a reason yet but hopefully it will be fixed when the stable version is released. I also found that a few other applications didn't work in Wine that may be affected by the same reason. I must say overall going for the beta operating system wasn't a very good idea on my part. When I had to installed I had to reformat and reinstall the operating system at least every two days because it kept breaking down.

Deas_Voice 10-20-2009 04:30 PM

Quote:

Originally Posted by DustyPorViva (Post 1532165)
Well, there should be an /open and /opentext -- two separate commands.

and /open would open attributes just like in the external RC?

DustyPorViva 10-20-2009 08:35 PM

Quote:

Originally Posted by Deas_Voice (Post 1532413)
and /open would open attributes just like in the external RC?

Ah, well I tried /open and it said unknown command, but that totally slipped my mind.

/openfile and /opentext then! :P

cyan3 10-20-2009 09:03 PM

The open file command should have the option to enable syntax highlighting for the text within the file. From using the internal text editor for the RC I noticed that it doesn't support syntax highlighting which is a big problem for me when I'm editing level scripts on Kingdoms Debug. The way I have to work around this is by creating a class on Testbed server for the coding and transfer it to Kingdoms Debug after it's complete. This limits testing mainly when the script contains code that only works on Kingdoms Debug which slows down the process meaning I have to transfer the script to Kingdoms Debug so I can edit it, then go back to Testbed server to correct it.

Deas_Voice 10-21-2009 08:18 PM

Quote:

Originally Posted by DustyPorViva (Post 1532454)
Ah, well I tried /open and it said unknown command, but that totally slipped my mind.

/openfile and /opentext then! :P

what would /openfile do?
like if u open a img it would show the img in a guiwindow or what?

Quote:

Originally Posted by cyan3 (Post 1532463)
The open file command should have the option to enable syntax highlighting for the text within the file. From using the internal text editor for the RC I noticed that it doesn't support syntax highlighting which is a big problem for me when I'm editing level scripts on Kingdoms Debug. The way I have to work around this is by creating a class on Testbed server for the coding and transfer it to Kingdoms Debug after it's complete. This limits testing mainly when the script contains code that only works on Kingdoms Debug which slows down the process meaning I have to transfer the script to Kingdoms Debug so I can edit it, then go back to Testbed server to correct it.

well that sucks o.o

DustyPorViva 10-21-2009 08:22 PM

Quote:

Originally Posted by Deas_Voice (Post 1532780)
what would /openfile do?
like if u open a img it would show the img in a guiwindow or what?

Open the file like you were opening it from the file browser. Would enable us to edit levels/ganis/images and such without having to go through the trouble of navigating the file browser.

Deas_Voice 10-21-2009 08:36 PM

Quote:

Originally Posted by DustyPorViva (Post 1532782)
Open the file like you were opening it from the file browser. Would enable us to edit levels/ganis/images and such without having to go through the trouble of navigating the file browser.

ooo...
like downloading it?

DustyPorViva 10-21-2009 08:41 PM

Quote:

Originally Posted by Deas_Voice (Post 1532790)
ooo...
like downloading it?

Um. Imagine you open the file browser, double click on "level14.nw", edit it, save, and then it updates on the server. Remove the file browser from the equation and replace it with /openfile level14.nw


All times are GMT +2. The time now is 07:14 PM.

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