Skip to content

Can't compile #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ongloveth opened this issue Apr 6, 2020 · 10 comments
Open

Can't compile #148

ongloveth opened this issue Apr 6, 2020 · 10 comments

Comments

@ongloveth
Copy link

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

  • Plugin version:
  • Sourcemod version:
  • Steps to reproduce (please be specific):
@ongloveth
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

splewis commented Apr 7, 2020

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
Copy link
Author

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
Copy link
Author

Can you share that backup to me?

@ongloveth
Copy link
Author

My discord: Frenzi3d#3256

@mrc4tt
Copy link

mrc4tt commented Apr 9, 2020

@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
Copy link
Owner

splewis commented Apr 11, 2020

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
Copy link
Owner

splewis commented Apr 12, 2020

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

@splewis
Copy link
Owner

splewis commented Apr 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants