Guide To Compiling The Source Code

A place to show off your mods and discuss modding SCPCB.
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 » Mon Dec 31, 2012 3:49 pm

Glitch wrote:I appear to be getting the same problem, first time I compile the source code it worked, only the program closed straight after being opened. I tried compiling again and got an error saying "function 'initext' not found".
I got the 1.98 update and put the fastext.dll in the userlibs folder, anything else I could be doing wrong?

Did you put FastExt.bb in the same folder as Main.bb? Run Blitz3D as admin?

I still haven't figured out how to fix my problem though. Damn "Memory access violation"...


A suggestion might be what someone did with another game I modded, which is where someone who had no problems compiling the code just uploaded his setup and folder structure for us to just extract and fiddle and compile for ourselves.

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 » Mon Dec 31, 2012 9:05 pm

Glitch:
Is the error in fastext.bb or main.bb? Screenshot if you can.

InnocentSam:
Try running your executable in the scp directory. Send me a copy and I'll see if it works on my end.
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 » Mon Dec 31, 2012 9:12 pm

Image
Pony got in the shot :/
I'm not here as much right now, mention me on our Discord server if you need anything.

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 » Mon Dec 31, 2012 9:19 pm

Can you find the initext function I'm fastext.bb and screenshot the declaration?
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 » Mon Dec 31, 2012 9:30 pm

; library system vars
Global FE_PivotSys% = 0
Global FE_InitExtFlag% = 0
Global FE_InitPostprocessFlag% = 0
Global FE_PostprocessTexture1% = 0
Global FE_PostprocessTexture2% = 0
Global FE_PostprocessTexture3% = 0
Global FE_PostprocessTexture4% = 0
Global FE_PostprocessTexture5% = 0

Fastext.bb seems to compile fine.
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 » Mon Dec 31, 2012 11:59 pm

MonocleBios wrote:Glitch:
Is the error in fastext.bb or main.bb? Screenshot if you can.

InnocentSam:
Try running your executable in the scp directory. Send me a copy and I'll see if it works on my end.

http://dl.dropbox.com/u/17887537/craftingmod/Main.exe

I've been running it in the executable in the SCP directory before.

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 » Tue Jan 01, 2013 1:41 am

InnocentSam wrote:http://dl.dropbox.com/u/17887537/craftingmod/Main.exe

I've been running it in the executable in the SCP directory before.


Doesn't work for me either.
Turn on debug mode in the compiler and screencap the debugger when the program crashes

Glitch:
Try retyping the 'initext' line, as you enter a new line the line should become 'InitExt' and turn blue.
If this doesn't work, add the line TextureLodBias above 'initext' and let me know what errors occur.
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 » Tue Jan 01, 2013 1:52 am

I get the same error, when I add TextureLodBias I get a function not found error for TextureLodBias
I'm not here as much right now, mention me on our Discord server if you need anything.

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 » Tue Jan 01, 2013 1:57 am

Glitch wrote:I get the same error, when I add TextureLodBias I get a function not found error for TextureLodBias


So I'm assuming that the text doesn't turn blue?
You may want to PM me your skype name to make this go faster. It seems like Blitz is including the library, but not the functions... I'm confused now...
Does replacing 'initext' with 'InitExt()' or 'InitExt%() help?
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 » Tue Jan 01, 2013 2:02 am

It did turn blue, didn't work though.
I also tried replacing it with InitExt(), got the same error.


I'll try this again tomorrow.
I'm not here as much right now, mention me on our Discord server if you need anything.


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 4 guests