CTGW modding questions
Posted: Thu Jan 14, 2016 6:53 pm
I have some modding questions I'm hoping some of the experts here (Sabratha, DanielHerr et al) might have some ideas on. Likewise if I figure out the solutions to these questions I'll post the code in this thread.
1. Display manpower %: I'm trying to display each factions current manpower (MP) % in the lower left resource panel as a tooltip. This info is available in the game as it does a MP % calculation to determine what color shading the MP number is in that panel, but all my attempts at displaying this info in this panel have failed. Either a crash (with somewhat useful error log info) or no effect - no crash but also no tooltip with MP %.
2. Spawn a new unit directly into the production build queue (versus using SpawnUnit to place it directly on the map): This is already done with Commanders so I am thinking I could do it with new units as well.
1. Display manpower %: I'm trying to display each factions current manpower (MP) % in the lower left resource panel as a tooltip. This info is available in the game as it does a MP % calculation to determine what color shading the MP number is in that panel, but all my attempts at displaying this info in this panel have failed. Either a crash (with somewhat useful error log info) or no effect - no crash but also no tooltip with MP %.
2. Spawn a new unit directly into the production build queue (versus using SpawnUnit to place it directly on the map): This is already done with Commanders so I am thinking I could do it with new units as well.