Compiled ACS

Discuss all aspects related to modding Zandronum here.
Post Reply
gamevoin
 
Posts: 26
Joined: Sun Dec 23, 2012 12:39 pm
Location: Russia

Compiled ACS

#1

Post by gamevoin » Wed Jul 02, 2014 11:55 am

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?
Last edited by gamevoin on Wed Jul 02, 2014 1:49 pm, edited 1 time in total.

Cruduxy
Zandrone
Posts: 1059
Joined: Fri Jun 08, 2012 4:24 pm

RE: Compiled ACS

#2

Post by Cruduxy » Wed Jul 02, 2014 3:10 pm

Ask Ijon if he wants to give you the source code. you'll need his permission anyway.
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]

gamevoin
 
Posts: 26
Joined: Sun Dec 23, 2012 12:39 pm
Location: Russia

RE: Compiled ACS

#3

Post by gamevoin » Wed Jul 02, 2014 3:18 pm

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.

Cruduxy
Zandrone
Posts: 1059
Joined: Fri Jun 08, 2012 4:24 pm

RE: Compiled ACS

#4

Post by Cruduxy » Wed Jul 02, 2014 3:26 pm

You still have to ask him for source code because most decompilers are useless garbage.
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]

gamevoin
 
Posts: 26
Joined: Sun Dec 23, 2012 12:39 pm
Location: Russia

RE: Compiled ACS

#5

Post by gamevoin » Wed Jul 02, 2014 3:27 pm

Thanks, I feel better.

Absolute Zero
 
Posts: 78
Joined: Fri Feb 14, 2014 1:43 am

RE: Compiled ACS

#6

Post by Absolute Zero » Wed Jul 02, 2014 3:33 pm

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.
IMPLEMENT WEAPON PICKUP PREDICTION 2K14! VOTE NOW! YES/YES

In fact, I hate Kelvins, and humans too, because they are carrying nearly 300 of them EVERYWHERE!

gamevoin
 
Posts: 26
Joined: Sun Dec 23, 2012 12:39 pm
Location: Russia

RE: Compiled ACS

#7

Post by gamevoin » Wed Jul 02, 2014 4:19 pm

It doesn't seem to care for Parkmore.C, since I edited it, it seems to take everything from Parkmore.o still.

Konda
Forum Regular
Posts: 487
Joined: Thu Jun 07, 2012 5:22 pm

RE: Compiled ACS

#8

Post by Konda » Wed Jul 02, 2014 4:35 pm

You need to compile Parkmore.c after editing it.
Last edited by Konda on Wed Jul 02, 2014 4:35 pm, edited 1 time in total.

Code: Select all

<Synert> fuck
<Synert> plugged in my memory stick and got a bsod

gamevoin
 
Posts: 26
Joined: Sun Dec 23, 2012 12:39 pm
Location: Russia

RE: Compiled ACS

#9

Post by gamevoin » Wed Jul 02, 2014 4:38 pm

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.
Last edited by gamevoin on Wed Jul 02, 2014 4:42 pm, edited 1 time in total.

Sir_Dyalot
New User
Posts: 13
Joined: Sun Jun 29, 2014 1:47 pm

RE: Compiled ACS

#10

Post by Sir_Dyalot » Thu Jul 03, 2014 4:01 am

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?
Last edited by Sir_Dyalot on Thu Jul 03, 2014 4:02 am, edited 1 time in total.

gamevoin
 
Posts: 26
Joined: Sun Dec 23, 2012 12:39 pm
Location: Russia

RE: Compiled ACS

#11

Post by gamevoin » Thu Jul 03, 2014 8:00 am

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.
Last edited by gamevoin on Thu Jul 03, 2014 8:09 am, edited 1 time in total.

Post Reply