It is currently August 10th, 2020, 4:03 pm

Help in editing a lua script designed by another person - details in post.

Help with creating, editing & fixing problems with skins
User avatar
Mor3bane
Posts: 884
Joined: May 7th, 2016, 7:32 am

Re: Help in editing a lua script designed by another person - details in post.

Post by Mor3bane »

balala wrote: July 25th, 2020, 2:27 pm I'm using Notepad++ and as said I can edit it with no problems. If a !WriteKeyValue bang writes anything, Notepad++ ask me if I want to reload the file, but otherwise it is editable.
Hmm, well, the same thing with SublimeText3 it asks for a reload but inhibits editing once the file has changed on its own. So, I just unload the skin edit then restart.

You did see what happens though - the skin broke for you and would not work. Therefore you do know what I meant when I said there are 'issues' with editing.

At any rate, NP++ or PN3 or ST3 - I've used them all as well as others for editing several languages, so I know they all have different behaviour with 'live' editing. I like ST3 the best since it is the most configurable and I have indeed configured those all to some degree.

Thanks for the assistance, with this thread's topic as well as many others. :thumbup:
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that is requires luck to achieve.
User avatar
balala
Rainmeter Sage
Posts: 11192
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help in editing a lua script designed by another person - details in post.

Post by balala »

Mor3bane wrote: July 25th, 2020, 11:51 pm You did see what happens though - the skin broke for you and would not work. Therefore you do know what I meant when I said there are 'issues' with editing.

At any rate, NP++ or PN3 or ST3 - I've used them all as well as others for editing several languages, so I know they all have different behaviour with 'live' editing. I like ST3 the best since it is the most configurable and I have indeed configured those all to some degree.
If there are such issues, try using Windows built-in Notepad, just for live editing. I agree it has a lot of disadvantages, but at least for sure won't have such issues.
User avatar
Mor3bane
Posts: 884
Joined: May 7th, 2016, 7:32 am

Re: Help in editing a lua script designed by another person - details in post.

Post by Mor3bane »

balala wrote: July 26th, 2020, 6:14 am If there are such issues, try using Windows built-in Notepad, just for live editing. I agree it has a lot of disadvantages, but at least for sure won't have such issues.
My next option will be to move the variables that are being updated with the !WriteKeyValue Bangs to the inc file so editing the main functions will not be an issue with the skin running. It has been tricky as there seems to be some - I wouldn't call the redundancies, but what appear to be multiple Bangs that seem to be doing the same thing - anyway, it shouldn't require lua as far as i can see.

Cheers.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that is requires luck to achieve.
User avatar
balala
Rainmeter Sage
Posts: 11192
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help in editing a lua script designed by another person - details in post.

Post by balala »

Mor3bane wrote: July 28th, 2020, 12:38 am My next option will be to move the variables that are being updated with the !WriteKeyValue Bangs to the inc file so editing the main functions will not be an issue with the skin running.
Good idea, give it a try and let us know if you got it working well.
Mor3bane wrote: July 28th, 2020, 12:38 am anyway, it shouldn't require lua as far as i can see.
Don't see why lua should be involved.