lunarcleint / Wednesdays-Infidelity

The GitHub repository for Wednesday's Infidelity Part 2.
Apache License 2.0
44 stars 77 forks source link

CppAPI.hx error causes game to not build on Linux #11

Closed GenesisGreen closed 1 year ago

GenesisGreen commented 1 year ago

Describe your bug here.

When I try compiling the game on Linux, the terminal outputs the errors shown in the Command Prompt/Terminal logs.

Command Prompt/Terminal logs (if existing)

source/data/CppAPI.hx:13: characters 15-33 : Class<data.WindowsData> has no field setWindowColorMode
source/data/CppAPI.hx:13: characters 34-38 : Unknown identifier : DARK
source/data/CppAPI.hx:18: characters 15-33 : Class<data.WindowsData> has no field setWindowColorMode
source/data/CppAPI.hx:18: characters 34-39 : Unknown identifier : LIGHT
source/data/CppAPI.hx:23: characters 15-29 : Class<data.WindowsData> has no field setWindowAlpha
source/data/CppAPI.hx:28: characters 15-32 : Class<data.WindowsData> has no field _setWindowLayered

Are you modding a build from source or with Lua?

Source

What is your build target?

Linux

Did you edit anything in this build? If so, mention or summarize your changes.

I edited the Project.xml file to add the " " tag

REALHaydenGaming commented 1 year ago

Same, lunar could you PLEASE add a #if linux tag on the cpp thingy?

Cuz yeah, broken af.

lunarcleint commented 1 year ago

Please refer to this issue: https://github.com/lunarcleint/Wednesdays-Infidelity/issues/13

lunarcleint commented 1 year ago

(If the link doesn't work go the closed issue named Issue relating to Linux computer's)

REALHaydenGaming commented 1 year ago

(If the link doesn't work go the closed issue named Issue relating to Linux computer's)

Actually, just get rid of the CPP API, as that is windows only (Also get rid of entering in the Spec Detector thingy). Including WindowData.hx

And just try to find a fix for the hxCodec.

lunarcleint commented 1 year ago

Its only there cause if you access it directly throught WindowsData.hx it make cpp compiling errors

REALHaydenGaming commented 1 year ago

Its only there cause if you access it directly throught WindowsData.hx it make cpp compiling errors

Nope. If you completely remove all 3 + removing the access to Specs Dectector. The mod would run perfectly fine.