MGreene0912
Chieftain
- Joined
- Apr 22, 2020
- Messages
- 2
I'm fairly new to LUA and Civ Modding in general, so let me apologize ahead of time if I'm missing something simple here..
I'm using the "Various Mod Components" .dll, along with WHoward's "Pick'N'Mix Mods".. specifically, the "Separate GP Counters" mod.
I'm trying to increase the cost of each individual counter for a player, but can't seem to find the right function to do it.
I've found a couple functions in the C++ header files that I believe are related to what I'm attempting to achieve:
"Player.incrementGreatEngineersCreated()"
"Player.getGreatEngineersCreated()"
But can't get them to work within FireTuner.
The "increment" function seems to execute successfully (no errors within the console), but it does not affect the actual game running.
The "get" function gives me syntax errors.
After going through the Dll's source code, I noticed another C++ header file ('CVLuaPlayer.h') that looks like it's declaring functions to be used via LUA? (Although I'm not sure if this is required or even how LUA works).
So my questions are:
- First of all, if anyone has experience with this mod (Separate GP Counters), am I even using the correct functions?
- And secondly, assuming I am using the correct functions, is it possible to call them from LUA without them being declared within the Dll's "CVLuaPlayer.h"? (I don't have Visual Studio installed so re-compiling is really last resort)
Any help/insight on this would be greatly appreciated.
Thanks!
I'm using the "Various Mod Components" .dll, along with WHoward's "Pick'N'Mix Mods".. specifically, the "Separate GP Counters" mod.
I'm trying to increase the cost of each individual counter for a player, but can't seem to find the right function to do it.
I've found a couple functions in the C++ header files that I believe are related to what I'm attempting to achieve:
"Player.incrementGreatEngineersCreated()"
"Player.getGreatEngineersCreated()"
But can't get them to work within FireTuner.
The "increment" function seems to execute successfully (no errors within the console), but it does not affect the actual game running.
The "get" function gives me syntax errors.
After going through the Dll's source code, I noticed another C++ header file ('CVLuaPlayer.h') that looks like it's declaring functions to be used via LUA? (Although I'm not sure if this is required or even how LUA works).
So my questions are:
- First of all, if anyone has experience with this mod (Separate GP Counters), am I even using the correct functions?
- And secondly, assuming I am using the correct functions, is it possible to call them from LUA without them being declared within the Dll's "CVLuaPlayer.h"? (I don't have Visual Studio installed so re-compiling is really last resort)
Any help/insight on this would be greatly appreciated.
Thanks!