splewis / csgo-practice-mode

CS:GO Sourcemod plugin for private team/individual practice servers
GNU General Public License v3.0
455 stars 70 forks source link

Can't compile #148

Open ongloveth opened 4 years ago

ongloveth commented 4 years ago

If making a feature request, you should delete all the pre-filled text here. If reporting a bug, fill in the following sections:

Expected behavior

//// practicemode.sp // // D:\Tourserver\TOURNAMENT SERVER\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/entities.inc(1773) : fatal error 196: deprecated syntax; see https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Typedefs // // Compilation aborted. // 1 Error. // // Compilation Time: 0.3 sec // ----------------------------------------

Actual behavior

Steps to reproduce

ongloveth commented 4 years ago

I installed but after complied it show.

//// practicemode.sp // // include/botmimic.inc(1) : error 010: invalid function or declaration // practicemode.sp(217) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs // practicemode.sp(218) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs // practicemode/botreplay.sp(64) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay.sp(78) : error 017: undefined symbol "BotMimic_IsPlayerMimicing" // practicemode/botreplay.sp(357) : error 017: undefined symbol "BotMimic_ResetPlayback" // practicemode/botreplay.sp(358) : error 017: undefined symbol "BotMimic_StopPlayerMimic" // practicemode/botreplay.sp(372) : error 017: undefined symbol "BotMimic_IsPlayerMimicing" // practicemode/botreplay.sp(389) : error 017: undefined symbol "BotMimic_IsPlayerMimicing" // practicemode/botreplay_data.sp(328) : error 017: undefined symbol "BotMimic_GetLoadedRecordList" // practicemode/botreplay_data.sp(328) : warning 213: tag mismatch // practicemode/botreplay_data.sp(332) : error 017: undefined symbol "BotMimic_DeleteRecord" // practicemode/botreplay_editor.sp(64) : error 017: undefined symbol "BotMimic_IsPlayerMimicing" // practicemode/botreplay_editor.sp(82) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(83) : error 017: undefined symbol "BotMimic_StopRecording" // practicemode/botreplay_editor.sp(120) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(136) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(150) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(189) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(190) : error 017: undefined symbol "BotMimic_StopRecording" // practicemode/botreplay_editor.sp(195) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(196) : error 017: undefined symbol "BotMimic_StopRecording" // practicemode/botreplay_editor.sp(228) : error 017: undefined symbol "BotMimic_IsPlayerMimicing" // practicemode/botreplay_editor.sp(235) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(236) : error 017: undefined symbol "BotMimic_StopRecording" // practicemode/botreplay_editor.sp(240) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(241) : error 017: undefined symbol "BotMimic_StopRecording" // practicemode/botreplay_editor.sp(294) : error 017: undefined symbol "BotMimic_IsPlayerRecording" // practicemode/botreplay_editor.sp(470) : error 017: undefined symbol "BotMimic_StartRecording" // // Compilation aborted. // 26 Errors. // // Compilation Time: 0.52 sec // ----------------------------------------

ongloveth commented 4 years ago

I tried to install only the entity.inc file. After compiling, it displayed an error message of the effects.inc file. I tried to install it. After that, it was showing many error messages. Same as the text above

splewis commented 4 years ago

The plugin code is still compiled against sourcemod 1.9: https://github.com/splewis/csgo-practice-mode/blob/master/.travis.yml#L8

I doubt it would compile on the latest SM versions, some changes are likely needed.

ongloveth commented 4 years ago

Installed sourcemod 1.9 still have this problem.

//// practicemode.sp // // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(24) : error 001: expected token: "{", but found "struct" // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(26) : error 001: expected token: "public", but found "int" // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(27) : error 001: expected token: "}", but found "int" // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(30) : error 054: unmatched closing brace ("}") // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(330) : error 017: undefined symbol "chatColorInfo" // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(330) : warning 215: expression has no effect // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(330) : error 001: expected token: ";", but found "]" // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(330) : error 029: invalid expression, assumed zero // D:\Get5\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\include\smlib/colors.inc(330) : fatal error 190: too many error messages on one line // // Compilation aborted. // 8 Errors. // // Compilation Time: 1.05 sec // ----------------------------------------

ongloveth commented 4 years ago

Can you share that backup to me?

ongloveth commented 4 years ago

My discord: Frenzi3d#3256

mrc4tt commented 4 years ago

@splewis The include file for botmimic.inc is b0rked.

We were able to compile it via sourcemod-1.10.0-git6455 once we found out this was the cause of hte issue.

Can you fix the master file when you get a moment?

@stealthrs make PR! ^^

splewis commented 4 years ago

Can you fix the master file when you get a moment?

The botmimic repository should be updated first, then the submodule here including it should be updated. I'd suggest making a PR in https://github.com/peace-maker/botmimic.

In the meantime, compilation on 1.9 works fine AFAIK.

splewis commented 4 years ago

It's a symlink to a file in a git submodule. Why do you think that's the problem?

splewis commented 4 years ago

Or perhaps the symlink is setup incorrectly?

Either way the continuous builds still work fine as-is, so it's not really that important to me to fix: https://ci.splewis.net/job/csgo-practice-mode/300/console. The travis builds also work: https://github.com/splewis/csgo-practice-mode/blob/master/.travis.yml#L25