Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: My recent EUD tools - epScript
My recent EUD tools - epScript
Dec 12 2016, 12:54 am
By: trgk  

Dec 12 2016, 12:54 am trgk Post #1



epScript - Script language for eud

Example code:


import stages.py_timeline;

import stages.pattern01;
import stages.pattern02;
import stages.pattern02_var;
import stages.pattern03;

import player.lifesys as lSys;

const stagesFuncs = [
pattern02.funcs, // Basic tutorial
pattern02_var.funcs, // Basic tutorial 2
pattern01.funcs, // Thing
pattern03.funcs,
0
];

////////////////////////////////

var currentStage = 0;
const currentStageProc = EUDFuncPtr(0, 0)();
var isGameCompleted = 0;

function nextStage() {
if(isGameCompleted) return;
const stageFuncs = stagesFuncs[currentStage];
currentStage++;
if(stageFuncs == 0) {
isGameCompleted = 1;
return;
}

KillUnit('(any unit)', Force2);
RemoveUnit('Avoider', Force1);
lSys.createPlayers();

const stageFunc2 = EUDArray(stageFuncs);
const stageName, stageStarter, stageProc =
DBString(stageFunc2[0]),
EUDFuncPtr(0, 0)(stageFunc2[1]),
EUDFuncPtr(0, 0)(stageFunc2[2]);

SetCurrentPlayer(getuserplayerid());

const buffer = DBString(50);
const k1 = dbstr_print(buffer, "\x0F#", currentStage, ". \x04");
dbstr_addstr(k1, stageName.GetStringMemoryAddr());
DoActions(buffer.GetDisplayAction());
EUDFuncPtr(0, 0)(stageStarter)();
currentStageProc.setFunc(stageProc);
}

function gameCompleteProc();

function runStageProc() {
// Staging
if(currentStage == 0 || Bring(Force1, AtLeast, 1, 'Avoider', 'stageEnd')) {
nextStage();
}
if(isGameCompleted) {
gameCompleteProc();
return;
}
(currentStageProc)();
}

function gameCompleteProc() {

}


epScript compiles your javascript-like code to python code.
Python code can be compiled to starcraft triggers using eudplib.


Just some recent news. I'm encountering numerous bugs to catch day by day, so this is something very far from release.

Of course all of my tools require EUDA + 1.16.1 version of starcraft.

Repo here



EUD

Dec 14 2016, 8:34 pm Wormer Post #2



So, is it an example of code resulting from from epScript to feed for eudplib?



Some.

Jan 6 2017, 3:33 pm trgk Post #3



It is the code being fed to epScript.
epScript then outputs something like this

Collapsable Box


Resulting python code is then fed to eudplib to generate triggers.



EUD

Jan 20 2017, 8:05 am verssuss Post #4



how can i got this eudeditor 2
http://cafe.naver.com/edac.cafe?iframe_url=/ArticleRead.nhn%3Fclubid=17046257%26page=1%26menuid=223%26boardtype=L%26articleid=49215%26referrerAllArticles=false



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Vrael, Roy, NudeRaider