headshot2017 / sm64-san-andreas

Super Mario 64 in GTA San Andreas
73 stars 7 forks source link

i have a problem #1

Closed tttefan2005 closed 1 year ago

tttefan2005 commented 1 year ago

this Project/Target: "plugin_sa - Release": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler. Probably the toolchain path within the compiler options is not setup correctly?! Do you have a compiler installed? Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\mingw32/bin/gcc.exe', but failed!

Skipping... Nothing to be done (all items are up-to-date).

headshot2017 commented 1 year ago

https://github.com/headshot2017/sm64-san-andreas/wiki/Compiling-the-plugin#setting-up-codeblocks-and-mingw-w64 you need to make sure you downloaded mingw, extracted the "mingw32" folder to C:\, and set up the compiler settings as the wiki page shows you

tttefan2005 commented 1 year ago

i did extract the folder to c but didnt work

headshot2017 commented 1 year ago

and the compiler settings > toolchain executables? did you make sure the install directory is "C:\mingw32"? did you rename the compiler exes in it? like the C compiler must be "gcc.exe" instead of "mingw32-gcc.exe"? send a screenshot of the toolchain executables tab

tttefan2005 commented 1 year ago

i did it now it works however heres another problem C:\plugin-sdk-master\shared\Other.h|105|error: no matching function for call to 'stat::stat(const char&, stat)'|

headshot2017 commented 1 year ago

you forgot this step

tttefan2005 commented 1 year ago

heres another one ||=== Build: GTASA Release in sm64-san-andreas (compiler: GNU GCC Compiler) ===| ld.exe||cannot find -lplugin| ||error: ld returned 1 exit status| ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 5 second(s)) ===|

headshot2017 commented 1 year ago

you have to finish building plugin_sa if you haven't, also, you need to double-check the build target you used for all of them; if you compiled plugin_sa with the "Debug" target, all the others must also be with the Debug target

tttefan2005 commented 1 year ago

everytime when i open the game it freezes i think its beacsue of the libgcc_s_dw2-1.dll and libwinpthread-1.dll files

headshot2017 commented 1 year ago

are you playing the steam version of the game? (the original steam release, not definitive edition?)

tttefan2005 commented 1 year ago

Actually i was playing the non steam original version of the game

headshot2017 commented 1 year ago

if you go into your gta sa scripts folder do you see two sm64 .asi files?

maybe send a screenshot too just in case

tttefan2005 commented 1 year ago

I only have one mario 64 así file

headshot2017 commented 1 year ago

go to this site, upload your gta sa save file (My Documents > GTA San Andreas User Files > "GTASAsf3.b") and show me what the "Binary/EXE Version" says

if you don't have a save file, make a new one in the game but take out the sm64 asi first so it doesn't freeze

tttefan2005 commented 1 year ago

i already have save files

headshot2017 commented 1 year ago

then upload your save file and show me the binary/exe version through the link i posted above

tttefan2005 commented 1 year ago

i uploaded it and heres the screenshot bandicam 2023-04-06 20-05-19-880

headshot2017 commented 1 year ago

ok so it's v1.0, what if you delete every .dll and .asi file in the scripts folder, then build plugin_sa, libsm64 and sm64-san-andreas, all three with "Debug" target then try starting it again?

tttefan2005 commented 1 year ago

i tried with debug but still dosent work

tttefan2005 commented 1 year ago

it still freezes

headshot2017 commented 1 year ago

ok what if you delete the asi and dll files again then try with Release on all of them? kinda grasping at straws here

tttefan2005 commented 1 year ago

Im afriad it will casud the same freeze

tttefan2005 commented 1 year ago

Now it works only i have to do is rename the rom file to sm64.us.z64

headshot2017 commented 1 year ago

good to hear you fixed it! yes, just rename the rom, and once you start the game you should hear the sm64 star sound