Page 1 of 1

Open Spades compiling from source - Failed to load main.as

Posted: Tue Oct 20, 2015 4:22 pm
by Frigid
I've been working on compiling this game from source for a while now...and I've got to tell you, the "guide" on git is absolutely atrocious. I've had to jump through several very small hoops to get where I am, and now I'm thoroughly stumped.

The game loads and then crashes, producing the "failed to load '/Main.as'" error. It seems that the code that raises the error "ScriptManager.cpp", is assuming a Linux style file system(as windows directories are denoted with a \, not a /). I tried changing some things to get it to use Windows style notation, but it still didn't work. I've tried several things, but I need someone more knowledgeable about the game to help me. Just ask me for info and I will provide it.

Thanks.

Re: Open Spades compiling from source - Failed to load main.

Posted: Tue Oct 20, 2015 4:51 pm
by Frigid
Figured it out, I needed to put the Resources folder in the exe folder, for some reason. Just in case anyone else needs this in the future.

Re: Open Spades compiling from source - Failed to load main.

Posted: Tue Oct 20, 2015 5:13 pm
by LeCom
Oh thanks I have the same problem and don't have to search BnS now. As a side note, the "linux style" notation is part of POSIX (it has to be, doesn't it?), therefore supported/parsed by Windows, so don't change it.

Re: Open Spades compiling from source - Failed to load main.

Posted: Tue Oct 20, 2015 10:45 pm
by bloodfox
how the fuck did you learn to compile OS o.O

Re: Open Spades compiling from source - Failed to load main.

Posted: Fri Oct 23, 2015 5:44 pm
by Frigid
Trial and Error

That and I know C++ so

Re: Open Spades compiling from source - Failed to load main.

Posted: Fri Oct 23, 2015 8:51 pm
by bloodfox
Frigid wrote:
Trial and Error

That and I know C++ so
ya my bud Chameleon codes with C++, too and he's been trying to figure out shit about compiling OS but he doesn't know how.

Re: Open Spades compiling from source - Failed to load main.

Posted: Tue Oct 27, 2015 12:04 am
by Driskull
Glad I'm not the only one who couldn't do it. This was actually the first time I tried to compile someone else's project so I'm in way over my head here. What folder is named the exe folder? Or are you referring to something else?

Re: Open Spades compiling from source - Failed to load main.

Posted: Mon Nov 02, 2015 10:14 pm
by Frigid
Basically don't attempt this unless you have programming knowledge, I can't hold everyone's hand. It took me several hours straight of researching and trial and error to get it to work, so expect the same, much more if you don't know C++.