SciGuy42
Community Members-
Posts
98 -
Joined
-
Last visited
-
Days Won
2
SciGuy42 last won the day on July 17 2021
SciGuy42 had the most liked content!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
SciGuy42's Achievements
Discens (2/14)
135
Reputation
-
I am working on a scenario and as a way of boosting the AI a bit, I periodically spawn some random citizen soldiers by their civic centre. To my surprise, the AI wasn't using them to do any work and they just keep standing where they were spawned. Then, I decided to try something different - I spawn the same units as Gaia entities and change their ownership to the player through code. Now, the AI immediately puts them to work! My guess is that the latter method trigger some function similar to what happens when the AI produces a worker through its building, while simply spawning the units for the AI to use them as it sees fit, does not.
- 1 reply
-
- 1
-
How to give a player an upgrade in a trigger script?
SciGuy42 replied to skillfulhacks's topic in Scenario Design/Map making
Here: https://github.com/SciGuy42/Macedonia_0ad/blob/a25/maps/scenarios/Macedonia_45.js Starts at line 2637. In this example, all players get the techs to advance to the latest phase and player 1 also gets the line of sight with allies tech. -
I have now finished the port to a25! Sorry it took a while, with the war going on and all, my open source development time had to be spent elsewhere. What's next? I can try to install the latest version and start that port. It took me a while because I had to play every mission mostly from start to finish to make sure there are no bugs. Can someone point me to the list of major changes in the latest version relative to a25 so I can estimate what it would take to convert? Thanks!
-
I know how to get an entity's cmpPosition but will simply changing the x and y coordinates actually teleport it? The other issue with this is that I only know the entity ID of the destination, currently I use the spawn units function to spawn a "copy" at that destination which automatically figures out the actual x,y position.
-
Mission 39 is now also converted to a25. Yay. For the next mission, I need to figure out how to properly teleport units (basically, you have dug tunnels into the city that needs to be conquered :). The previous attempt worked but it was very hacky and not every type of unit could be teleported. Ideally, what I need is a function that given the entity ID, it tells me the template of the entity so I can spawn that exact template. Does such a function exist? Thanks!
-
Sure, it'd appreciate it. Currently up to mission 36 work on a25. I am still hesitant about it being a finished campaign in the sense that I want people to be able to skip ahead if needed. There may still be bugs in victory conditions that I haven't encountered, the order certainly isn't balanced for difficulty. So ideally, people should be able to play any mission even if they haven't finished the previous one. On the other hand, requiring the missions to be played in order will probably let us know what bugs need to be fixed. If you need github access to the repo, let me know and I can give permissions.
-
Up to and including mission 34 are now converted to a25. I had to take a break for a bit but now I'll try to finish the rest of them soon. As for making this part of the game, sounds good in theory but it looks like there are just way too many changes that happen from release to release. Unless each new version comes with a good automated conversion tool, I won't have the bandwidth to do the conversion to newer versions.
-
Up to mission 32 are now converted to a25 and can be downloaded here: https://github.com/SciGuy42/Macedonia_0ad/tree/a25 Just a few more to go! Most of the effort in converting goes into changing some function calls that changed as well as renaming the templates. I do test each mission once before I commit to the github and since I usually play on slow and turtle to micromanage better, that part can take a while.