Nov 28, 2019 at 4:36 AM
Join Date: Aug 5, 2019
Location: Hell
Posts: 41
Pronouns: he/him
If only this were the case 7 years ago, when CS modding was still relevant.so maybe now that this is a thing more people will be interested in modding Cave Story.
It just needs to get more popular.
Then we just need to make it rise from the grave with a meme or something.If only this were the case 7 years ago, when CS modding was still relevant.
Include <VAR and then it will be exactly like RPG Maker's script editorI wonder if a tsc constructor could be made of this parser that could work like RPG Maker's script editor...
this is very cool! maybe soon you can make it so you can see the facesand maybe see their unique textured faces by inserting it some how
its kinda confusing why it tells you the <MSG is in a message box, but its whatever
I'm also thinking about this.This could be pretty useful for people that want to learn the language, and otherwise is still pretty cool to see even if it doesn't have a ton of use for me personally.
Two things that would be cool to see on this are support for using non-numbers for command arguments (which is done for negative input on stuff like lives and also out of bounds flagging) and maybe a bit more support for some more common custom commands.
Really? Why give up on TSC? It's really simple as long as you have reference docs.Very interesting. I know many people would give up trying to learn TSC for the first time so maybe now that this is a thing more people will be interested in modding Cave Story.
It just needs to get more popular.
planning on it.This could be quite promising. I'd suggest you continue working on it in order to improve whatever needs improving.
nope, not possible, sorrycan you make this but for assembly code
I haven't seen RPG Maker's script editor, but I could probably do something like that.I wonder if a tsc constructor could be made of this parser that could work like RPG Maker's script editor...
var commands = [
{
"code": "MSG",
"args": [],
"descriptor": ["Open a message box."],
},
{
"code": "TRA",
"args": ["num", "num", "num", "num"],
"descriptor": ["Travel to stage #", " and run event #", ". While you're at it, set the player coords to ", ","],
},
]
commands.forEach((e) => {
var x = document.createElement("span");
listOfPossibleCommands.appendChild(x);
if (e.descriptor.length!==0 && (e.args.length !== e.descriptor.length)) {
throw `Err: ${e.code}'s args and descriptor length need to be the same, but they're ${e.args.length} and ${e.descriptor.length}`;
}
if (e.descriptor.length===0) {
x.innerText = "<"+e.code + ": "+e.descriptor[0];
} else {
x.innerText = "<"+e.code + ": ";
for (let l = 0; l < e.descriptor.length; l++) {
let v = document.createElement("input");
x.innerHTML += e.descriptor[l];
x.appendChild(v);
v.addEventListener("input", // actual input stuff );
}
}
});
I'll probably put in <VARInclude <VAR and then it will be exactly like RPG Maker's script editor
Trust me. Many people give up on certain things if they don't succeed at them immediately because they think it's too difficult for them or something.Really? Why give up on TSC? It's really simple as long as you have reference docs.
If it helps some people learn though, that's good enough for me. It's as much to help me learn as anyone else, just learning different things.
If you need help with some <VAR stuff, I'll be available when I can.I'll probably put in <VAR
that type of thing is the entire reason WHY i made this
the problem isn't using itIf you need help with some <VAR stuff, I'll be available when I can.
huh. my philosophy has always been "if you want to do it, and it's worth it to you, do it. if you don't know how, learn how."Trust me. Many people give up on certain things if they don't succeed at them immediately because they think it's too difficult for them or something.
/\<(([A-Z0-9+-]){3}(([0-9]){4})?)((\:([0-9]){4})?){0,3}/g
More nitpicking:
• For the parser commands seem to be case-sensitive.
• '<TRA0000<0019_012992942<MSGTest<END' returns the tra event as it should so good work on considering using different symbols between parameters,
something's wrong with the <MSG parser, gimme a sec to debug this (I'll edit this post when I'm done)but I also get '[position 27, char T] Warn: Message box is closed, but you're trying to print to it??? Ignoring that for now.' which probably doesn't sound good. I think I get this when I put<MSG behind anything with parameters.
The event written above is wrong anyway, but returns a message that shouldn't be there either way. An event that looks like '<MSGTest<TRA0000:0000:0000:0000' would return this message too, I wonder if you can find out what it is. ; )
12345678901234567890123456 V (below the V is character #27, which happens to be a T)
<TRA0000<0019_012992942<MSGTest<END
[position 26, char G]
1234567890123456789012345 V (below the V is character #26, which is a G)
<TRA0000<0019_012992942<MSGTest<END
This is a regex I used in a different project. It parses TSC tags and attributes. You might find it helpful in the long run:
i'm not a regex god and i'm sure there's a shorter way to achieve the same thing but please dont yell at meCode:/\<(([A-Z0-9+-]){3}(([0-9]){4})?)((\:([0-9]){4})?){0,3}/g
Maybe replace direction numbers with actual directions?
Typically 0,1,2,3 are left,up,right,down. There are also special directions for many things. (Like I think MYB > 10 faces an entity with the event number you entered)