Kxnrl / Store

Store plugin for Source Engine Games.
https://github.com/Kxnrl/Store
90 stars 44 forks source link

Compile Errors #130

Closed sneak-it closed 2 years ago

sneak-it commented 4 years ago

Hello, every time I try to compile this Store off master branch, I get numerous errors. After changing the gamemode compile define to Casual (GM_HZ), this is what I get:

//// store.sp
//
// G:\SM 1.10\knxrl store\include\store_stock.inc(7) : error 050: constant 'szName' already defined
// G:\SM 1.10\knxrl store\include\store_stock.inc(40) : error 050: constant 'iId' already defined
// G:\SM 1.10\knxrl store\include\store_stock.inc(59) : error 050: constant 'szPlFile' already defined
// G:\SM 1.10\knxrl store\store.sp(91) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(92) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(93) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(94) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(95) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(96) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(97) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/hats.sp(13) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/skin.sp(9) : error 050: constant 'szModel' already defined
// store/modules/skin.sp(16) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/grenades.sp(5) : error 050: constant 'szModel' already defined
// store/grenades.sp(18) : error 050: constant 'iSlot' already defined
// store/grenades.sp(22) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/grenades.sp(23) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/grenades.sp(70) : error 032: array index out of bounds (variable "g_eGrenadeSkins")
// store/grenades.sp(88) : error 032: array index out of bounds (variable "g_eGrenadeTrails")
// store/grenades.sp(101) : error 032: array index out of bounds (variable "g_eGrenadeSkins")
// store/grenades.sp(111) : error 032: array index out of bounds (variable "g_eGrenadeSkins")
// store/models.sp(16) : error 050: constant 'iSlot' already defined
// store/models.sp(21) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(502) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(506) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1170) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1170) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1173) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1279) : error 032: array index out of bounds (variable "g_ePlans")
// G:\SM 1.10\knxrl store\store.sp(1313) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1313) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1316) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(1856) : error 032: array index out of bounds (variable "g_ePlans")
// G:\SM 1.10\knxrl store\store.sp(1858) : error 032: array index out of bounds (variable "g_ePlans")
// G:\SM 1.10\knxrl store\store.sp(1860) : error 032: array index out of bounds (variable "g_ePlans")
// G:\SM 1.10\knxrl store\store.sp(2140) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(2140) : error 032: array index out of bounds (variable "g_eMenuHandlers")
// G:\SM 1.10\knxrl store\store.sp(2142) : error 032: array index out of bounds (variable "g_eMenuHandlers")
//
// Compilation aborted.
// 26 Errors.

Gamemode death surf (GM_SR):

//// store.sp
//
// G:\SM 1.10\knxrl store\include\store_stock.inc(7) : error 050: constant 'szName' already defined
// G:\SM 1.10\knxrl store\include\store_stock.inc(40) : error 050: constant 'iId' already defined
// G:\SM 1.10\knxrl store\include\store_stock.inc(59) : error 050: constant 'szPlFile' already defined
// G:\SM 1.10\knxrl store\store.sp(91) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(92) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(93) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(94) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(95) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(96) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// G:\SM 1.10\knxrl store\store.sp(97) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/hats.sp(13) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/skin.sp(9) : error 050: constant 'szModel' already defined
// store/modules/skin.sp(16) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/neon.sp(11) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/trail.sp(7) : error 050: constant 'iSlot' already defined
// store/modules/trail.sp(9) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/modules/trail.sp(19) : error 032: array index out of bounds (variable "g_eTrails")
// store/modules/trail.sp(50) : error 032: array index out of bounds (variable "g_eTrails")
// store/modules/trail.sp(57) : error 032: array index out of bounds (variable "g_eTrails")
// store/modules/trail.sp(115) : error 032: array index out of bounds (variable "g_eTrails")
// store/grenades.sp(5) : error 050: constant 'szModel' already defined
// store/grenades.sp(13) : error 050: constant 'szMaterial' already defined
// store/grenades.sp(22) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/grenades.sp(23) : warning 241: Array-based enum structs will be removed in 1.11. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs
// store/grenades.sp(70) : error 032: array index out of bounds (variable "g_eGrenadeSkins")
// store/grenades.sp(87) : error 001: expected token: ",", but found "["
// store/grenades.sp(87) : error 029: invalid expression, assumed zero
// store/grenades.sp(87) : warning 215: expression has no effect
// store/grenades.sp(87) : error 001: expected token: ";", but found "]"
// store/grenades.sp(87) : fatal error 190: too many error messages on one line
//
// Compilation aborted.
// 16 Errors.
Kxnrl commented 4 years ago

yes. we need to use 'enum struct' instead of current array-based enum structs. I created a new branch, but now I have no time to work on that. busy with IRL works.

Kxnrl commented 3 years ago

can u try this branch https://github.com/Kxnrl/Store/tree/enum-struct

Kxnrl commented 3 years ago

Fixed in https://github.com/Kxnrl/Store/commit/ced2e3453e348568709715f3a50ba4c51ebfaa96