Page 1 of 1
Compiled ACS
Posted: Wed Jul 02, 2014 11:55 am
by gamevoin
Okay, so I want to RIP OFF Parkmore for my project, but for gods sake I can't edit the scripts to remove that HRRGN training message.
"Type "PHELP" For Parkmore Tutorial"
Because I can't open the script which contains this script for an tutorial script, it's already compiled, and when I go "View As Text" I get only this line for the entire .o file
"ACS
"
I tried all kinds of ACS De-Compilers but they dont work at all.
In short, how do I de-compile ACS?
RE: Compiled ACS
Posted: Wed Jul 02, 2014 3:10 pm
by Cruduxy
Ask Ijon if he wants to give you the source code. you'll need his permission anyway.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 3:18 pm
by gamevoin
But but
Code: Select all
. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Ijon Tichy <gztichy@lavabit.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 3:26 pm
by Cruduxy
You still have to ask him for source code because most decompilers are useless garbage.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 3:27 pm
by gamevoin
Thanks, I feel better.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 3:33 pm
by Absolute Zero
I think the line you are looking for is this one (from parkmore.c):
HudMessage(s:"Type 'phelp' for Parkmore help.";
Comment it and you are ready to go. Regardless, as the original author, I think he would be happy to know in what you are using it for.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 4:19 pm
by gamevoin
It doesn't seem to care for Parkmore.C, since I edited it, it seems to take everything from Parkmore.o still.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 4:35 pm
by Konda
You need to compile Parkmore.c after editing it.
RE: Compiled ACS
Posted: Wed Jul 02, 2014 4:38 pm
by gamevoin
But It doesn't compile. In any formats.
Code: Select all
Line 4 in file "C:\Users\Admin\Desktop\Doom\Slade\temp\parkmore.acs" ...
C:\Users\Admin\Desktop\Doom\Slade\temp\parkmore.acs:4: Couldn't find include file "commonFuncs.h".
This error. And when I remove "include file "commonfuncs.h" it gives me a bunch of other errors.
P.S. If there's an obvious error or smth, remember. I AM DUMB.
RE: Compiled ACS
Posted: Thu Jul 03, 2014 4:01 am
by Sir_Dyalot
gamevoin wrote:
But It doesn't compile. In any formats.
Code: Select all
Line 4 in file "C:\Users\Admin\Desktop\Doom\Slade\temp\parkmore.acs" ...
C:\Users\Admin\Desktop\Doom\Slade\temp\parkmore.acs:4: Couldn't find include file "commonFuncs.h".
This error. And when I remove "include file "commonfuncs.h" it gives me a bunch of other errors.
P.S. If there's an obvious error or smth, remember. I AM DUMB.
I just so happen to have encountered similar errors recently when modifying other people's code for my own amusement...
SLADE is stupid about compiling ACS; it won't look inside the file for the header file it's including. If it's including a header file (commonfuncs.h in this case), you'll need to export that header file to disk, THEN add the directory you put it in to the Include Paths in your Preferences under Scripting/ACS. Also, depending on what version of ACS you're using, that commonfuncs.h, if it's anything like ones i've seen before, might redefine stuff that's already defined -- so you'll have to remove those functions from the exported header file as the errors come.. If all goes well, you can compile it, BUT it won't change the file name and will overwrite the C in the wad. SO if you want to back up the source code, you'll want to export it before you compile it, at which point, you might as well have been compiling it from the command line...
Also, off-topic, why are you running a doom editor as admin?
RE: Compiled ACS
Posted: Thu Jul 03, 2014 8:00 am
by gamevoin
Thank you, good Sir, but it still gives me errors telling what CommonFuncs.h has errors. Feel like I use something wrong here.
Code: Select all
Line 187 in file "commonFuncs.h" ...
commonFuncs.h:187: Invalid identifier.
> function int sqrt(
> ^
News::: Nevermind!After some pain, torture, and manipulation I managed to get through it and get rid of that training message. ho ho ho.