View Full Version : Stripping down the python bits in the Afterworld mod


GeneralMatt
Aug 25, 2007, 07:52 PM
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...

GeneralMatt
Aug 26, 2007, 05:53 PM
No one? Hmm.

Teg_Navanis
Aug 27, 2007, 05:59 AM
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.

GeneralMatt
Aug 27, 2007, 09:54 AM
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..

deanej
Aug 28, 2007, 08:16 AM
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.

GeneralMatt
Aug 28, 2007, 02:34 PM
Are those actions not controlled in Python though? I thought they were, but if not that would be very nice!

deanej
Aug 29, 2007, 08:44 AM
They may be, but they are included in the epic game (just not used).

GeneralMatt
Aug 29, 2007, 11:26 AM
Cool, I did not realize that.. So I do not really need to do anyhing with Python, just use the default files?

deanej
Aug 30, 2007, 09:27 AM
Probably. Like I said, I haven't tried it myself, but I can't imagine the game designers would include the LOS feature in the epic game without the turning buttons.

GeneralMatt
Aug 30, 2007, 02:33 PM
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..