Stripping down the python bits in the Afterworld mod

GeneralMatt

Emperor
Joined
Jul 10, 2005
Messages
1,980
Location
Canada
If I wanted to strip the Afterworld mod of all it's events and just leave the unit actions (Turn, range strike and the LoS bits) would I be able just to delete certain Python files or would I actually have to delete bits in different Python files?

I am thinking it would be very cool as a base for a Battlefield simulation mod, kind of like in Sid Meier's Pirates! with just more units and variety. I found the battles in Pirates! Extremely fun, with flanking, ranged attacks and so, but all you ever got to be were Pirates, not something like Highlanders lining up and firing volleys, or knights crashing into ranks of pikemen...
 
No one? Hmm.
 
Trying it out will take less time than going through thousands of lines of code, looking at what each bit does. My guess is that it will run without python files, but that some afterworld-specific features will be missing.
 
Yes, I tried deleting the Python files that had to do with events and stuff, it loaded fine but when I went to play it crashed..
 
Those functions aren't done by Python. You get ranged attack by defining an air unit range in the XML for the unit and it also has a place in there that says whether or not LOS is affected by the direction the unit is facing. I think that will also give the turning buttons (would be logical) but I don't know because I have never tried it before.
 
Are those actions not controlled in Python though? I thought they were, but if not that would be very nice!
 
Cool, I did not realize that.. So I do not really need to do anyhing with Python, just use the default files?
 
It seems that the turning functions are "Promotions" as they are in the Afterworld Promotion file.. weird.
But the ranged attack but is in the Epic game as you said..
 
Back
Top Bottom