Deicide4u Posted July 27, 2025 Share Posted July 27, 2025 I've installed Alpha 9 in order to better understand the game's code and core gameplay loop from a simpler perspective. I realize that this version has many issues, one of the most glaring ones being able to train more than one hero at a time. And yes, having no phases or technologies doesn't bother me. How can I limit the amount of trainable heroes to only one? Link to comment Share on other sites More sharing options...
Gurken Khan Posted July 27, 2025 Share Posted July 27, 2025 7 minutes ago, Deicide4u said: How can I limit the amount of trainable heroes to only one? Knowing next to nothing about coding I'd guess as per usual: copy & paste. Find how it's done now, copy it to the old source and build. I'd imagine building that old source could be quite a pain, especially if you'd have to implement that whole function into the engine. Link to comment Share on other sites More sharing options...
Deicide4u Posted July 27, 2025 Author Share Posted July 27, 2025 1 hour ago, Gurken Khan said: Find how it's done now, copy it to the old source and build I don't think that building of the source is required. The only thing that needs to be done is to modify the hero unit templates and restrict the training limit in a JS file. I see there's BuildLimits.js file, but I need a similar one for units. Link to comment Share on other sites More sharing options...
Deicide4u Posted July 30, 2025 Author Share Posted July 30, 2025 Yeah, it's a bit harder than I thought Changeset that implemented the feature: https://trac.wildfiregames.com/changeset/12832/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now