Author Topic: Op2 Compiler  (Read 10502 times)

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Op2 Compiler
« on: September 24, 2005, 07:07:11 PM »
I've finally put together a 'package' for OP2 DLL coding, which no longer needs a copy of MSVC to work properly.

This package uses the free Microsoft Visual C++ Toolkit 2003 compiler, CodeBlocks IDE, and the Platform SDK headers.

Instructions and download at http://wiki.outpostuniverse.net/Compiler_Setup

We suggest everyone download this, as it's much better than MSVC!

(Note: We will always continue to support MSVC. This is mainly for the people who don't want a large download or don't want to get MSVC. Besides, it's more stable than MSVC anyway <_<).

Any questions / comments, post them here!

-- op2hacker

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Op2 Compiler
« Reply #1 on: September 24, 2005, 08:19:39 PM »
Thanks Hacker  :)  I am downloading now   :D


spirit
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline thablkpanda

  • Full Member
  • ***
  • Posts: 249
Op2 Compiler
« Reply #2 on: September 24, 2005, 11:13:27 PM »
I've kept up with the development process, so I'm looking forward to the outcome. Nice idea- I'll be downloading now.

Panda

Offline Leviathan

  • Hero Member
  • *****
  • Posts: 4055
Op2 Compiler
« Reply #3 on: September 25, 2005, 06:43:19 AM »
Good work!

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Op2 Compiler
« Reply #4 on: September 25, 2005, 08:10:55 AM »
Good to see people like it :)

The instructions are clear enough, I hope?

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Op2 Compiler
« Reply #5 on: September 25, 2005, 09:43:38 AM »
yes I am working on coding now   B)
  You could not have made the install help better  ;)  
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline leeor_net

  • Administrator
  • Hero Member
  • *****
  • Posts: 2350
  • OPHD Lead Developer
    • LairWorks Entertainment
Op2 Compiler
« Reply #6 on: September 25, 2005, 01:45:43 PM »
'tis pretty cool... but... I find MSVC to be very stable. Unless you're talking about the IDE... in which case mine is still very stable. Are you using 6.0? If that's the case then that's your problem. I've got .NET/2002 and it works very well for me (i just can't compile things for use on less than Win2K systems which I'm ok with anyway).

Offline TH300

  • Hero Member
  • *****
  • Posts: 1404
    • http://op3game.net
Op2 Compiler
« Reply #7 on: September 25, 2005, 03:56:02 PM »
how hard would it be to support MingW/GCC as compiler? Then I could actually use it. The VC++ Toolkit doesn't run (not even install) on Windows 98.

PS: since VC++6 works on my comp it doesn't hurry.
« Last Edit: September 25, 2005, 03:57:24 PM by TH300 »

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Op2 Compiler
« Reply #8 on: September 25, 2005, 04:20:00 PM »
MingW will probably never work because the exported name decoration is way different from MSVC's. OP2 uses MSVC name decoration.

Yeah, I was talking MSVC 6 IDE. It has a tendency to crash or do some odd things. Not sure about .NET IDE, I've never used it but I'll have to assume it's better...

As for Win9x -- It'd probably run fine. Maybe I'll make a package with just the exe's for the compiler; maybe you can get that to work.

the .NET framework is probably the reason it won't install. (Which it doesn't REQUIRE to run)

Offline TH300

  • Hero Member
  • *****
  • Posts: 1404
    • http://op3game.net
Op2 Compiler
« Reply #9 on: September 25, 2005, 04:26:42 PM »
Quote
the .NET framework is probably the reason it won't install. (Which it doesn't REQUIRE to run)
its probably not. I have installed the .net-framework. Yea, the exe's might still work. Its the installer that refuses to unpack them.

Offline Leviathan

  • Hero Member
  • *****
  • Posts: 4055
Op2 Compiler
« Reply #10 on: September 25, 2005, 04:30:36 PM »
When i run the toolkit installer it says: The InstallScript engine is missing from this machine. If available, please run ISScript.msi, or contact your support personnel for further assistance.

Dam microsoft.

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Op2 Compiler
« Reply #11 on: September 25, 2005, 05:28:25 PM »
Download and run the MSI file located inside this ZIP to fix the problem:

http://support.installshield.com/kb/files/...8/IsScript9.zip

And you can download the compiler files at:
http://www.outpostuniverse.net/files/coding/toolkit.rar

Just extract to a folder. Start Codeblocks, go to Settings > Compiler. Select MSVC++ Toolkit from the list. Go to the Programs tab and browse for the folder you extracted to.

Follow the rest of the directions as normal.
« Last Edit: September 25, 2005, 05:43:22 PM by op2hacker »

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
Op2 Compiler
« Reply #12 on: September 25, 2005, 08:32:43 PM »
gj. i find both msvc environments rock solid; have never had it crash on me. [MSVC+ 6; MSVS.net 2003 Enterprise]

Offline HaXtOr

  • Sr. Member
  • ****
  • Posts: 423
    • http://www.wtfmoogle.com
Op2 Compiler
« Reply #13 on: October 04, 2005, 10:04:33 PM »
Wee now I can make use of my old trusty 286 and comile op2 levels with it lol

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Op2 Compiler
« Reply #14 on: October 12, 2005, 05:22:19 PM »
Is there another way to make missions? I can't run Microsoft Visual C++ on my Me.

Edit: I figured it out  :D

Edit2: When i close CodeBlocks, i get a error message... hmmm.
« Last Edit: October 12, 2005, 05:51:23 PM by Mcshay »

Offline Leviathan

  • Hero Member
  • *****
  • Posts: 4055
Op2 Compiler
« Reply #15 on: October 12, 2005, 06:56:57 PM »
Yeah if people wanna use notepad/text editor they can. Just gotta get someone else to compile it to a DLL.

Offline Stormy

  • Hero Member
  • *****
  • Posts: 678
    • http://www.op3game.net
Op2 Compiler
« Reply #16 on: October 12, 2005, 11:20:50 PM »
So, will this allow me to program other things besides op2 stuff also? (if i download that library thing ZZJ was talking about)


Whee... 200th post :D:D:D

I think i have a new title now :D:D:D  :P  B)

Stormy  :op2:
wasn't here  :ph34r:  
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·
3D artist in Blender, MS3D, and Terragen.
Trying to get good with Scene composition and lighting.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Op2 Compiler
« Reply #17 on: October 12, 2005, 11:49:47 PM »
Quote
Edit2: When i close CodeBlocks, i get a error message... hmmm.

that happens to me everytime I use it too  ;)  but it does not seem to create any problems so its fine by me  :P  
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
Op2 Compiler
« Reply #18 on: October 13, 2005, 08:00:24 AM »
if you need/want to use notepad to edit files for some reason, pm me for the cmdline bit i made.

I also get said error msg.....

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Op2 Compiler
« Reply #19 on: October 13, 2005, 01:56:09 PM »
Yeah, the error message is nothing to be concerned about.

I've had it happen to me as well, but not every time I exit.

It has something to do with wxWindows (not sure exactly what), but I'd hope it'll be fixed in a coming version of CodeBlocks.

The program still works proper functionally.

stormy: Library thing? It should work properly if you downloaded the platformsdk-headers.rar (or have MSVC installed and used the headers/libs from that)

You won't need any extra files to compile normal windows programs.

Offline Stormy

  • Hero Member
  • *****
  • Posts: 678
    • http://www.op3game.net
Op2 Compiler
« Reply #20 on: October 13, 2005, 04:28:00 PM »
Ok cool, And it's legal too :D:D, so I can give my copy of MSVC 2.1 to a Museum or something  :lol:

So, If I ever get back into coding... (Modeling is a bigger priority now... man I wish I didn't have to sleep.... go alll day and alll night.. and then go to school... and then come home, do Homework, Model stuff, play op2, go outside or something, program something...


If only...  :ph34r:

Stormy  :op2:  
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·
3D artist in Blender, MS3D, and Terragen.
Trying to get good with Scene composition and lighting.

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Op2 Compiler
« Reply #21 on: October 13, 2005, 06:36:39 PM »
I've gotten everything to work, untill I noticed code blocks wasn't making dlls. I checked the settings, and they're right. I used the link Hacker posted instead of the MSVC++ download, because it wouldn't work on Me (somehow the other one did). What is wrong?

Offline zigzagjoe

  • Hero Member
  • *****
  • Posts: 626
Op2 Compiler
« Reply #22 on: October 13, 2005, 06:57:39 PM »
check in ./ReleaseMinSize for OP2Script.dll. it should be there when using msvc; for codeblocks i have no idea where it puts it.

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Op2 Compiler
« Reply #23 on: October 13, 2005, 07:04:19 PM »
What are you asking me to do?? I don't get it.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Op2 Compiler
« Reply #24 on: October 13, 2005, 07:25:46 PM »
did you do this step?

Quote
Installing the OP2 SDK
Unpack the op2_cbsdk.rar file you downloaded to any folder. Go into CodeBlocks, to the Settings > Compiler > Directories tab again. Click the lower Compiler tab, and add the \Include folder from the OP2 SDK that you just unpacked to the list. Next, click the lower Linker tab, and add the \Lib folder from the folder you just unpacked. Click OK in the dialog box, and exit CodeBlocks.

Go into the folder you just unpacked, and open the \CB_Templates folder. This folder contains the project templates for use in CodeBlocks.

Copy the contents of the folder (not the CB_Templates folder itself, but the share folder inside of it) to the CodeBlocks installation folder. (Usually C:\Program Files\CodeBlocks). Click Yes to All if it asks about overwriting files with the same names here.

"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter