The official --=jscam=-- thread

For AI and campaign script related discussions and questions

Re: The official --=jscam=-- thread

Postby Per » 01 May 2017, 22:14

Berserk Cyborg wrote:Missions 2-7/2-8/2-B have been completed. Additionally, I fixed 1-1s "let me win" not letting a player to skip through the power module part by cheating. And made minor fixes for the campaign library.

I am at the last Beta mission. Are droids saved in some list somewhere when the transporter exits the map (would multiple transport loads in the same mission just remove previous ones)?

The transporter is copied into the offworld list. Not sure what happens with that list on campaign change. You can read out the droids in the eventTransporterExit() event for safekeeping.

Can you make a merge request for the 1-1s "let me win" fix? It would make it easier to test things. Thanks.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3581
Joined: 03 Aug 2006, 19:39

Re: The official --=jscam=-- thread

Postby Berserk Cyborg » 19 May 2017, 22:40

Fixed a bug with cam1-b that could cause it to not allow progress. A label was causing problems after loading from that mission.

Almost done with the last Beta script though I am having problems getting to launch another transport. I can create a new transport and fly it back into base, however I can not get the launch button to make it take off... Any ideas?

Edit: can anyone confirm if tickets #4427 and #3946 are supposed to happen?
Berserk Cyborg
Code contributor
Code contributor
 
Posts: 165
Joined: 26 Sep 2016, 19:56

Re: The official --=jscam=-- thread

Postby Per » 21 May 2017, 23:24

I don't have many ideas, but you could try to run with --debug=save (not sure why mission code uses this particular log category) to see what's going on behind the scenes. If that fails, I could add some more of them.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3581
Joined: 03 Aug 2006, 19:39

Re: The official --=jscam=-- thread

Postby Berserk Cyborg » 22 May 2017, 02:35

Looking at the .slo file for cam2-end I see that it calls this which is located in mission.cpp:
Code: Select all
setDroidsToSafetyFlag(true);

and then that allows code in transporter.cpp to reset the state of the launch button. Still, I need to look into this further.
Berserk Cyborg
Code contributor
Code contributor
 
Posts: 165
Joined: 26 Sep 2016, 19:56

Re: The official --=jscam=-- thread

Postby Berserk Cyborg » 25 May 2017, 06:03

Finally finished 2-end. It needs setDroidsToSafetyFlag(true) and also a reinforcement time to function properly.

So I will start working on mission 3-A.
Berserk Cyborg
Code contributor
Code contributor
 
Posts: 165
Joined: 26 Sep 2016, 19:56

Re: The official --=jscam=-- thread

Postby Berserk Cyborg » 02 Jun 2017, 19:16

Finished the first Gamma mission. Will move onto 3-1 scripts.

I just found that research is not being granted to enemy players at all (findResearch() does recognize the tech has been researched for them). Any idea why?
Berserk Cyborg
Code contributor
Code contributor
 
Posts: 165
Joined: 26 Sep 2016, 19:56

Previous

Return to Scripting