Jump to content

Photo

Moosh Global Script Organizer


  • Please log in to reply
8 replies to this topic

#1 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 11 November 2018 - 04:51 AM

Hey guys! Do you like downloading EXE files from strangers on the internet? Do you have a mighty need to combine global scripts but also don't want to learn ZScript to do so? Do you have a seething hatred of JavaScript? Are you one of the maybe three people who used my old global script combiner?
 
Then behold:
 

Moosh Global Script Organizer

 

OC8dyVn.png

 
This is something I've been working on the past few days. It's a tool to combine and organize global scripts and a successor to my previous version. In addition to now being in a more friendly, non web-based format, this one has some new features. Many of the old limitations of that version should be fixed and I tried to bring the UI a bit closer to how ZQuest does it, with individual scripts appearing in a list. With it you can:

  • Add and remove global scripts in your script file
  • Change the order global scripts run in
  • View and modify constants in specific global scripts, with comment descriptions included
  • Add scripts that do not contain an example global script 

I'm hoping that people who were interested in the idea of the original but found it too complicated to use will find this one more helpful.
 
Here's some example screenshots:
 
dS6Lkkd.png
 
R0JVNFp.png
 
As usual with this sort of thing, make sure to keep frequent backups if you use it. There's a good chance there's still some bugs that could crash the program or corrupt the global script output. I'd also highly recommend downloading Notepad++ for saving the scripts it outputs in. 

Download

And here's a GitHub link if any of you guys want to poke around its guts or contribute to the project.
https://github.com/Moosh64/MGSO


Edited by Moosh, 11 November 2018 - 06:18 PM.

  • Anthus, Twilight Knight, Taco Chopper and 4 others like this

#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 11 November 2018 - 03:25 PM

Did you use the CR, NL, or LF character?

I'll look at it when it's on GitHub.

#3 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 11 November 2018 - 05:48 PM

Did you use the CR, NL, or LF character?

I'll look at it when it's on GitHub.

Looks like it's outputting just LF. And then the reason Notepad++ reads it correctly is it automatically converts it to CR LF. I'll check again if CR LF works. Maybe it was unrelated to the crash.

 

Edit: Should be fixed now. So peeps can use regular Notepad if they must.


Edited by Moosh, 11 November 2018 - 06:31 PM.


#4 Saffith

Saffith

    IPv7 user

  • Members

Posted 11 November 2018 - 05:50 PM

I think you want to use Environment.NewLine instead of '\n' for output. That should evaluate to either "\n" or "\r\n" depending on the platform.
For splitting lines of input, you can check each possibility individually: loadedScript=body.Split(new[] {"\r\n", "\r", "\n"}, StringSplitOptions.None);
(I don't know C#; I'm just looking things up here.)

#5 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 11 November 2018 - 06:28 PM

I think you want to use Environment.NewLine instead of '\n' for output. That should evaluate to either "\n" or "\r\n" depending on the platform.
For splitting lines of input, you can check each possibility individually: loadedScript=body.Split(new[] {"\r\n", "\r", "\n"}, StringSplitOptions.None);
(I don't know C#; I'm just looking things up here.)

Ah, thanks. This'll be good to know if I ever try multi platform stuff. I don't think I'd be able to port this to anything besides Windows though, since it's made with WPF. 

 

...I have become the problem that I always hated back when I used Mac. :P


  • Anthus likes this

#6 Soma Coreaix

Soma Coreaix

    The Draconic Corvid

  • Members
  • Real Name:Josh
  • Location:Akumajou Soma

Posted 11 November 2018 - 08:40 PM

Noted, for when I have even a basic idea of what I'm doing with anything...lol



#7 Sans

Sans

    Hey kid wanna buy hot dogs ?

  • Members
  • Location:Judgement Hall

Posted 12 November 2018 - 06:14 PM

i cannot download that :/ my pc said that the file is 'dangerous' and that blocked it what can i do ?

#8 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 12 November 2018 - 06:33 PM

i cannot download that :/ my pc said that the file is 'dangerous' and that blocked it what can i do ?

That should be the same warning Windows gives every time you download a new EXE file. New versions of ZC would do the same thing. Scan it with your antivirus if you're worried, but it should be fine. There's an option in the warning window that lets you run the file anyways. Click that and it should stop giving you the warning.



#9 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 13 November 2018 - 04:55 AM

Ah, thanks. This'll be good to know if I ever try multi platform stuff. I don't think I'd be able to port this to anything besides Windows though, since it's made with WPF. 
 
...I have become the problem that I always hated back when I used Mac. :P

 
Are you using Visual Studio 2017? If so, there are add-ons to cross-compile to Linux.
 

That should be the same warning Windows gives every time you download a new EXE file. New versions of ZC would do the same thing. Scan it with your antivirus if you're worried, but it should be fine. There's an option in the warning window that lets you run the file anyways. Click that and it should stop giving you the warning.

 
 

i cannot download that :/ my pc said that the file is 'dangerous' and that blocked it what can i do ?


Does this happen when you download it, or when you try to eun it? post a screenshot of the exact error. (ZIP files should never do this.)

You can always install VS and compile it directly.

For the record, Windows Defnder is awful, paranoid, and broken as heck. It false flagsa good stuff, and misses bad stuff.

Oh, and GFL reporting issues with Windows Defender false-flagging. The MS form to report this (as a developer) is broken.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users