[Zscript] Mod/File checking

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Re: [Zscript] Mod/File checking

Postby Ryan Cordell » Mon Oct 17, 2016 11:05 am

Oh I'm sure they do.. right now, but that doesn't feel like a smart system to begin with.
User avatar
Ryan Cordell
PDA Man
 
Joined: 06 Feb 2005
Location: Capital of Explodistan

Re: [Zscript] Mod/File checking

Postby Major Cooke » Mon Oct 17, 2016 1:18 pm

Well, again, I can't be certain. I'm just guessing there.

Also, made a separate thread for general discussion and questions considering how off the rails I took this thread. :P
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: [Zscript] Mod/File checking

Postby Graf Zahl » Mon Oct 17, 2016 4:26 pm

There's 4 types of constants:

ints, floats, strings and names.

Strings can be unambiguously recognized by double quotation marks.
Names can be unambiguously recognized by single quotation marks.
Floats get recognized by either being too large for integer storage or typical floating point signs in the literal, like a decimal point or an exponent

And in case you wonder what this part was inspired by, I'd say don't look further than the most popular scripting language right now: Lua. Of course Lua takes the 'the value determines the type' approach even further by applying it to everything.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Zscript] Mod/File checking

Postby Major Cooke » Tue Oct 18, 2016 1:16 pm

Alright. I've documented all that down on the wiki.

Now back to the suggestion at hand, how will the zscript control work?
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: [Zscript] Mod/File checking

Postby Graf Zahl » Tue Oct 18, 2016 1:44 pm

Can we please get this stuff working first? Right now this thing is not even on my radar.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Zscript] Mod/File checking

Postby Major Cooke » Tue Oct 18, 2016 1:49 pm

My mistake. When you stated there's options, I had assumed there was already some form.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: [Zscript] Mod/File checking

Postby Graf Zahl » Tue Oct 18, 2016 4:58 pm

It makes no sense to think about control stuff when I'm still in the initial stages of making the compiler work.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Zscript] Mod/File checking

Postby Major Cooke » Sat Dec 03, 2016 11:22 pm

I think now might be a good time to bring this up again.

Perhaps something similar to how C++ does (end)if's might work? By checking for a specific 'tag' or something inside the files and versioning like you mentioned, this could become extremely useful.

This would be better than just going on file names alone since those may be prone to change.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: [Zscript] Mod/File checking

Postby Graf Zahl » Mon Jan 09, 2017 4:59 pm

This one's already in the tracker.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Zscript] Mod/File checking

Postby Rachael » Sun Apr 30, 2017 2:41 pm

User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: [Zscript] Mod/File checking

Postby Graf Zahl » Sun Apr 30, 2017 3:00 pm

Removed the 'closed' tag.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Previous

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest