Mac OS support#6
Conversation
2c32134 to
f4edd8a
Compare
- Create a "os detection" in both all_scripted_rome2.lua and consul.lua - in consul.lua, create a io_open method for being able to open the targeted file on both windows and macos
|
the script scriptum.lua is loading i can see the text in game. i'm pretty sure it has to be the _execute = function(cmd) at line 2740: but don't know how to handle it |
|
We should first cleanup the log writing and mark it as completed. It is enough to make Consul work on Mac and maybe on Linux right? Then we can figure out best way for dealing with raw lua script files. I don't like how complicated it starts to be with detecting paths lets just stick to defaults and call it a day. |
c563c26 to
2e6c204
Compare
|
i made the changes, let me know |
|
with the latest commit, the prebuilt scripts are working (for example exterminare) but the scriptum.lua cannot be loaded on macos because of the local success, err = pcall(dofile, script) which use the file as this without dealing with line ending. |
I can't think of anything right now as I don;'t have a Mac to test but opening and replacing line endings and using loadstring instead of dofile is the last ressort workaround I would like to avoid. I wonder if can make it work in a cleaner manner by figuring out what really happens under the hood here. |
322409f to
8117654
Compare
|
let me know if that's ok for you or if you need some changes :) |
That is great to hear !!! Clean and simple. I will have to test it for all games now locally before merging but I don't have the games installed atm. Don't worry It will get merged sorry for the time it takes but it's just not the best moment. |
I don't have the TOB and the modifications has been made for rome2 only, but it should be easy to adapt 🤞 |

The point is to add support for Mac OS version, for now for Rome2 only
fix #5 Scriptum button has no effect on macos
linked to Scriptum button has no effect on macos #5