VSH2-Devs / Vs-Saxton-Hale-2

VSH2 is a rewrite of the original VSH, meant to combine the best of VSH and FF2.
https://forums.alliedmods.net/showthread.php?t=286701
50 stars 15 forks source link

Migrate to Sourcemod 1.11 #231

Closed HotoCocoaco closed 1 year ago

HotoCocoaco commented 2 years ago

HotoCocoaco/Vs-Saxton-Hale-2/tree/sm-1.11

Make some changes to make it able to be compiled in 1.11.

However it's cannot be compiled in 1.10. :[ Not tested in-game. It should be ok because no big changes to the codes. It's proved working in my own server.

fxss-repository commented 2 years ago

Not compiling on Windows 10 with 1.11 compiler.

//// vsh2.sp // modules\base.sp(633) : error 017: undefined symbol "g_vshgm"

HotoCocoaco commented 2 years ago

Not compiling on Windows 10 with 1.11 compiler.

//// vsh2.sp // modules\base.sp(633) : error 017: undefined symbol "g_vshgm"

You cannot compile 2.12 in Windows compiler either. Try linux.

fxss-repository commented 2 years ago

What is the difference between the Windows operating system compiler and Linux? Are you using some kind of compiler of your own?

HotoCocoaco commented 2 years ago

What is the difference between the Windows operating system compiler and Linux? Are you using some kind of compiler of your own?

The file system seems different when handling include sp files. I have tried to compile 2.12 on both Windows and Linux. And only Linux compiler works.

// modules\base.sp(633) : error 017: undefined symbol "g_vshgm"

https://github.com/HotoCocoaco/Vs-Saxton-Hale-2/blob/sm-1.11/addons/sourcemod/scripting/modules/gamemode.sp#L640 It's defined here. And somehow Linux compiler will save that variable as a global var.

HotoCocoaco commented 1 year ago

What is the difference between the Windows operating system compiler and Linux? Are you using some kind of compiler of your own?

Fix Windows build. Compiled with SourcePawn Compiler 1.11.0.6919 on Windows. https://github.com/HotoCocoaco/Vs-Saxton-Hale-2/commit/4c55c9cfc96849efae7544e90d6911daab275a2e

DatOpb commented 1 year ago

We have fixed cross compile issues on Linux and Windows in the 2.13 update. It should be 1.11 compatible when 2.13 is released.

HotoCocoaco commented 1 year ago

Closed. https://github.com/VSH2-Devs/Vs-Saxton-Hale-2/commit/7395bbbdfb4283d4353c72f73427b6778b963d1f