CTGW modding questions

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
BuddyGrant
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 225
Joined: Sat Apr 11, 2009 7:06 am

CTGW modding questions

Post by BuddyGrant »

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.
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”