VLOGen

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

VLOGen

Post by milo christiansen »

drum roll... Presenting VLOGen another (possibly buggy, sort of working) masterpiece from me :lol2:

VLOGen uses a simple comment based markup to generate a template vlo from a (properly marked-up) slo

To run: "QScriptHost.exe Main.js InputFile.slo"

The markup is sorta explained in test.slo (included in the 7z) but here's a quick over view

Code: Select all

//? This is the vlo file header
//? as is this
//+
//? This is the header for the variable block
public int test; // This is copied into the vlo as an end of line comment
public bool testSet1; //S This marks the var as part of a set that should be interleaved 
public int testSet2; //S also this text is copied into the vlo as an end of line comment
//-
Pretty simple :) The generator is not quite finished I plan to make a way to specify a initial value for a variable, something like:

Code: Select all

public string test; //I["Inital Value"]
So a line with all the options will look like:

Code: Select all

public string test; //SI["Inital Value"] A simple string value

QScriptHost is a made-for-this-project script host that I wrote because I wanted to learn JavaScript and needed a project but couldn't find a JavaScript script host that would allow file io :roll:

Edit:
For the five people who downloaded the the old version, sorry I wrote the vlo generation code at 4 in the morning and I still don't know what I was thinking :oops: in any case it does not generate a valid vlo, not even close.

Also in the new package is WZScript Extender which uses a VLOGen like generator to add simple object oriented features to WZScript.

Both tools come with a test file that has examples of all valid syntax.

Edit:
New version of the script host that has various changes not important to the operation of the tools. The only change that maters is that as long as you follow the directions in EditMe.pri you should be able to compile the host from source on Linux/Mac. This is a workaround for a hack I have to use to get the .rc file to compile on my system :(
You do not have the required permissions to view the files attached to this post.
Last edited by milo christiansen on 21 Nov 2011, 17:42, edited 2 times in total.
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: VLOGen

Post by milo christiansen »

A vastly improved version uploaded to first post.

Variable initialization is now supported.
#define constants are supported
The script host now gives useful error messages.

Source code for both the normal script host and a debugger version is included so linux users should be able to use VLOGen with minimal modification of the script host source.
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: VLOGen

Post by milo christiansen »

The fixed version of VLOgen :oops: and the first version of WZScript Extender :) uploaded to first post.
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: VLOGen

Post by Goth Zagog-Thou »

Gonna try this as soon as I get back on Windows. Got some stuff to do today so it may be later on.
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: VLOGen

Post by milo christiansen »

You could compile the script host for linux too if you don't mind searching through the source and fixing any paths :lol2:

(btw that's not a serious suggestion)
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: VLOGen

Post by Goth Zagog-Thou »

I'm not that brave. :lol2:
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: VLOGen

Post by lav_coyote25 »

milo christiansen wrote: (btw that's not a serious suggestion)
why not... i ask only because i am curious. :)
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: VLOGen

Post by milo christiansen »

Well, you could if you want to, its C++/QT so if you can make sense of it (its only a few files) and remember to sync any changes you make to main.cpp with the debuggers version, go ahead :)

I just meant Goth probably didn't want to :wink:
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: VLOGen

Post by milo christiansen »

The script host should compile for others now :)

Before you try to compile you first have to edit "EditMe.pri", just follow the directions in the file. That disables a hack I use to get .rc files to compile on my system, if you use mingw as your compiler you can probably just leave it alone :wink: but as long as it works with it (the hack) off its better to do it that way :)

Look for the download in the first post
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual