Guide To Compiling The Source Code

A place to show off your mods and discuss modding SCPCB.
User avatar
MonocleBios
MTF
Posts: 615
Joined: Tue Dec 18, 2012 5:22 am
Location: The Great White North

Guide To Compiling The Source Code

Postby MonocleBios » Sun Dec 30, 2012 1:33 am

Step 1: 'Acquire' the full version of Blitz3D (Make sure you have a more recent version, otherwise Fast Extension may not compile properly. Found by InnocentSam)
Step 2: Get the trial version of the Fast Extension library: http://fastlibs.com/libraries.php (Full version is not needed, simply use the fastext.dll from SCP whenever it is referenced)
Step 3: Put the file in the decls folder + fastext.dll from fast extend to the userlibs folder inside your Blitz3d installation
Step 4: Add whatever include files you need in the same directory as the source code.
Step 5: Add the assets (mesh, audio, dlls, etc...) from the original game in their original folders
Step 6: Edit the code in whatever text editor you want
Step 7: Compile main.bb in Blitz3D (Turn Debug mode off)

Congratulations, you have compiled the source code into an executable. Distribute it as you please.

If you are getting any crashes, turn debug mode back on and run the program from Blitz3D. Either post the debugger message or a screenshot.
Last edited by MonocleBios on Thu Jan 03, 2013 12:22 am, edited 3 times in total.
M-x dingus-mode

User avatar
Destructoid
Senior Staff
Posts: 2394
Joined: Fri Nov 02, 2012 7:55 pm
Location: Behind you.

Re: Guide To Compiling The Source Code

Postby Destructoid » Sun Dec 30, 2012 2:38 am

By 'acquire' he means you either buy that expensive ass shit or you do it the smart way and see that it "falls of the back of the digital truck" *wink-wink.
Image
I WANT TO [REDACTED] INSIDE TWILIGHT SPARKLE
DRIVER_IRQL_NOT_LESS_OR_EQUAL
Atheros drivers SUCK!

User avatar
MonocleBios
MTF
Posts: 615
Joined: Tue Dec 18, 2012 5:22 am
Location: The Great White North

Re: Guide To Compiling The Source Code

Postby MonocleBios » Sun Dec 30, 2012 2:48 am

Destructoid wrote:By 'acquire' he means you either buy that expensive ass shit or you do it the smart way and see that it "falls of the back of the digital truck" *wink-wink.

Hey man, you can't just go around pillaging the high seas.
M-x dingus-mode

User avatar
Destructoid
Senior Staff
Posts: 2394
Joined: Fri Nov 02, 2012 7:55 pm
Location: Behind you.

Re: Guide To Compiling The Source Code

Postby Destructoid » Sun Dec 30, 2012 3:37 am

Arr, it be a 'privateers' life.
Image
I WANT TO [REDACTED] INSIDE TWILIGHT SPARKLE
DRIVER_IRQL_NOT_LESS_OR_EQUAL
Atheros drivers SUCK!

User avatar
Glitch
Moderator
Posts: 4119
Joined: Fri Nov 02, 2012 8:03 pm
Location: [REDACTED], England

Re: Guide To Compiling The Source Code

Postby Glitch » Sun Dec 30, 2012 1:03 pm

I still have issues, I compile the code and get the function not found error message and 'initext' is highlighted, if I simply "remove this error" then compile stops at 'BumpPower 0.03', if I remove this error...lets just say half the source code is gone by the time I can compile the scripts, the game doesn't really run.
I'm not here as much right now, mention me on our Discord server if you need anything.

User avatar
InnocentSam
MTF
Posts: 958
Joined: Wed Dec 19, 2012 4:09 pm
Location: Gallowmere
Contact:

Re: Guide To Compiling The Source Code

Postby InnocentSam » Sun Dec 30, 2012 2:09 pm

Cheers monocle, bro-love <3

EDIT: Hey guys, I found this truck right that was full of Blitz3D CDs and one just fell out... needless to say, I have the full version now.

User avatar
InnocentSam
MTF
Posts: 958
Joined: Wed Dec 19, 2012 4:09 pm
Location: Gallowmere
Contact:

Re: Guide To Compiling The Source Code

Postby InnocentSam » Sun Dec 30, 2012 2:41 pm

Alright so now it's compiled without any errors, I have my main.exe file, which I place into SCPCB 0.6.5 and run. Every time, it says "Memory access violation". Any ideas?

User avatar
MonocleBios
MTF
Posts: 615
Joined: Tue Dec 18, 2012 5:22 am
Location: The Great White North

Re: Guide To Compiling The Source Code

Postby MonocleBios » Sun Dec 30, 2012 4:39 pm

Glitch wrote:I still have issues, I compile the code and get the function not found error message and 'initext' is highlighted, if I simply "remove this error" then compile stops at 'BumpPower 0.03', if I remove this error...lets just say half the source code is gone by the time I can compile the scripts, the game doesn't really run.


Is 'FastExt.bb' in the same directory as 'Main.bb'?

InnocentSam wrote:Alright so now it's compiled without any errors, I have my main.exe file, which I place into SCPCB 0.6.5 and run. Every time, it says "Memory access violation". Any ideas?


Sometimes you have to mess around with it to get it to run. I find that either running it in admin mode or disabling the launcher works most of the time.
M-x dingus-mode

User avatar
Glitch
Moderator
Posts: 4119
Joined: Fri Nov 02, 2012 8:03 pm
Location: [REDACTED], England

Re: Guide To Compiling The Source Code

Postby Glitch » Sun Dec 30, 2012 8:34 pm

MonocleBios wrote:Is 'FastExt.bb' in the same directory as 'Main.bb'?


Eeyup
I'm not here as much right now, mention me on our Discord server if you need anything.

User avatar
InnocentSam
MTF
Posts: 958
Joined: Wed Dec 19, 2012 4:09 pm
Location: Gallowmere
Contact:

Re: Guide To Compiling The Source Code

Postby InnocentSam » Sun Dec 30, 2012 8:51 pm

MonocleBios wrote:
InnocentSam wrote:Alright so now it's compiled without any errors, I have my main.exe file, which I place into SCPCB 0.6.5 and run. Every time, it says "Memory access violation". Any ideas?


Sometimes you have to mess around with it to get it to run. I find that either running it in admin mode or disabling the launcher works most of the time.

I tried running it in admin. I'll disable the launcher and see what happens.


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 5 guests