4 posts
Posted 23 October 2012 - 09:52 PM
Is this possible to add a way, to map server side program to physical file on client side in order to allow easy editing?
Build-in edit program is far from being comfortable. It suits for quick fixes, but is struggling with bigger programs.
436 posts
Posted 23 October 2012 - 09:56 PM
I don't see how that would work. What if someone edits or deletes the file while you are away? How would it sync to the server? Better solution is pastebin, supposing the http api is active on the server. Beyond that, see if the server admin(s) will accept external programs to be injected onto the server's world files.
4 posts
Posted 23 October 2012 - 10:42 PM
I thought about kind of:
- map - map server program file to client file
- unmap - reverse above, do not change nothing, also executed if client connection drops or computer restarts
- sync - upload program to server
What if someone edits or deletes the file while you are away?
Exactly same thing as in case of programs edited/removed manually. Is there any difference if someone go and screw my program using 'edit'?
How would it sync to the server?
On-demand or by file system hook, which notifies you about file modification. Second approach will upload program every time you save it (if changes were made).
Better solution is pastebin, supposing the http api is active on the server.
Is it integrated with CC?
Beyond that, see if the server admin(s) will accept external programs to be injected onto the server's world files.
He is, by installing CC. I can create programs using simple 'edit' command, why would I not edit it's content using external editor?
The whole point of my question is to provide some kind of external-edit functionality, to easily edit programs in editor of choice while playing on server.
2005 posts
Posted 23 October 2012 - 11:54 PM
There is a utility that accepts a text file and then "types" it back into the next active window. Now I wonder where that was?
Here it is.
Minecopy V2 [Linux][Windows]in
API's and Utilities
Edited on 23 October 2012 - 10:12 PM
2447 posts
Posted 24 October 2012 - 12:12 AM
I do have a solution in mind to this problem - watch future updates.
2005 posts
Posted 24 October 2012 - 12:37 AM
You can also just edit the lua file you want to be in lines no longer than 127 characters, and use rCtrl+v paste them into CC edit one line at a time.
4 posts
Posted 24 October 2012 - 07:04 PM
There is a utility that accepts a text file and then "types" it back into the next active window. Now I wonder where that was?
Here it is.
Minecopy V2 [Linux][Windows]in
API's and Utilities
Looks interesting. But, I do not have a Python installed nor I do want it on my machine. That's personal. I would like better to see Java implementation of the idea.
Might work, but I do not like those dependencies.
You can also just edit the lua file you want to be in lines no longer than 127 characters, and use rCtrl+v paste them into CC edit one line at a time.
This is cumbersome. I do not wish to care about line limit. Copying&pasting line, by line? That's exactly why automating things is useful.
I didn't know that cut&paste works in terminal. Thanks.
I do have a solution in mind to this problem - watch future updates.
That sounds nice. Can you tell use what yours idea is?
2005 posts
Posted 24 October 2012 - 08:19 PM
You can only access the paste function in CC edit by using the right Control key, this is an important point. The left Control key accesses/exits the save/exit menu, making it very difficult to successfully paste.
I presume that the future program will be a better default version of edit…which you can code yourself if you're determined, but would be up against the problem of having to input it using the old edit program.
4 posts
Posted 24 October 2012 - 10:16 PM
Right Control, I overlooked that. Thanks.
Better Edit will not solve the issue. This still will not be a client side editor. Let's wait a little and see what Cloudy is up to.
2447 posts
Posted 24 October 2012 - 10:51 PM
Subject to change - but a way to mount client side files on the server. Won't give away much more than that ^_^/>/>
436 posts
Posted 24 October 2012 - 11:07 PM
Subject to change - but a way to mount client side files on the server. Won't give away much more than that.
Ahh. . . but that tells much. And, more importantly, narrows our expectancies. There are a finite amount of ways to do anything, and you have cut that field in half, rather than what has been suggested. And, frankly, answers one of my questions from earlier, which it seems is always ignored as an actual question.
389 posts
Location
Norway
Posted 25 October 2012 - 10:14 AM
I have done this before with symbolic links :P/>/> Like linking the whole ROM folder to a computer ID(or dropbox etc) ^_^/>/>
http://en.wikipedia.org/wiki/Symbolic_linkNot the most efficient, but it works XD