Kingdoms and Castles

Kingdoms and Castles

New Houses
MGTX[ETH] 24 Aug, 2023 @ 3:58pm
Error on MacOS - Compilation Failed
/Library/Application Support/Steam/steamapps/common/Kingdoms and Castles/Kingdoms and Castles.app/Contents/mods/569480/2932055120/ModMain.cs:806::806
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-08-24T18:53:26:Compilation failed with security exceptions.
< >
Showing 1-15 of 19 comments
Rakceyen  [developer] 24 Aug, 2023 @ 4:34pm 
Hm, okay. I'll take a look at that.

Thanks for notifying me :3
MGTX[ETH] 24 Aug, 2023 @ 8:04pm 
No problem, let me know if you need testing, thanks!
Rakceyen  [developer] 27 Aug, 2023 @ 1:27pm 
Originally posted by MGTXETH:
No problem, let me know if you need testing, thanks!

Are you using any other mods? Were you running in VR? And what version of the game are you running?
MGTX[ETH] 27 Aug, 2023 @ 1:36pm 
Latest version though steam, not VR, tried without any other mods on a fresh install. Unsure of why it has a reference for VR.
Rakceyen  [developer] 27 Aug, 2023 @ 8:19pm 
Originally posted by MGTXETH:
Latest version though steam, not VR, tried without any other mods on a fresh install. Unsure of why it has a reference for VR.

Well, the way that it works is it creates the build menu for normal, VR, and console in the same line of code. It specifically has a BuildTab, BuildTabVR, and BuildTabConsole. What's got me so confused is when calling the AddBuilding method (which creates the build menu), it asks for a BuildTab, BuildTab, and BuildTabConsole. It doesn't look for any BuildTabVR. Yet on Mac it's complaining that there isn't a BuildTabVR.

Also it's the same code on Windows, and that error doesn't get thrown.

So I too don't know why that error is getting thrown. I'm going to keep digging into the program to see if anything stands out to me.
macmorri 30 Oct, 2023 @ 11:19am 
Error message is little longer - let me copy all the stuff leading to failed compilation:

2023-10-30T19:05:43:Loading mod at path: /Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120
2023-10-30T19:05:43:<color=yellow>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:64::64
The variable 'e' is declared but never used</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:794::794
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:796::796
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:798::798
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:800::800
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:802::802
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:804::804
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:<color=red>/Users/macmorri/Library/Application Support/Steam/steamapps/workshop/content/569480/2932055120/ModMain.cs:806::806
Argument 2: cannot convert from 'BuildTab' to 'BuildTabVR'</color>
2023-10-30T19:05:43:Compilation failed with security exceptions.
Rakceyen  [developer] 10 Jan, 2024 @ 8:22pm 
Yeah, it looks like the script keeps breaking at the same point for each house. There's 7 BuildTab errors and 7 houses.

I keep poking at the code to see what I can find, but I haven't found an answer yet.
erfolgsdiplomat0 12 Mar, 2024 @ 10:56am 
tried to run this on mac aswell, but it doesn't even load ingame and keeps asking me to restart the game.
FranFran 9 May, 2024 @ 9:14am 
Also keeps asking me to restart the game on mac.
RSmith19902008 12 May, 2024 @ 9:36am 
I have received no error messages for this mod, it just simply doesn't exist in game. There is no trace of it anywhere in game. On a 2023 Macbook Pro if that matters.
Last edited by RSmith19902008; 12 May, 2024 @ 9:36am
Rakceyen  [developer] 26 May, 2024 @ 6:46pm 
Yeah, it seems Macs in general do not like this mod.

I did talk to one of the devs. They might look into it, as there are a few mods that have the same problem.
Sae 11 Jun, 2024 @ 11:46am 
I have te same problem
ViperVonVape 9 Aug, 2024 @ 8:43pm 
Has any news come forward on a fix for the mod for OS devices? I am still having issues with the mod not being installed.
Simon Sullivan 22 Aug, 2024 @ 10:21pm 
I would also love a fix for mac - this mod looks great
atwgoodman 23 Nov, 2024 @ 4:57pm 
No bueno on Mac :steamsad:
< >
Showing 1-15 of 19 comments
Per page: 1530 50