Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » All about modding JA2 » Illegal Soldier ID
Illegal Soldier ID[message #344422] Mon, 07 March 2016 21:30 Go to next message
edmortimer

 
Messages:779
Registered:January 2015
Location: Home Free
What does "Schedule Callback: Illegal Soldier ID of 0" mean? It just came up in the Info Box of the Strategic Screen for me in Arulco Vacations.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Illegal Soldier ID[message #344423 is a reply to message #344422] Mon, 07 March 2016 21:58 Go to previous messageGo to next message
Flugente

 
Messages:3051
Registered:April 2009
Location: Germany
From the looks of it, Scheduling seems tied to (NPC-only?) soldier actions:
enum
{
	SCHEDULE_ACTION_NONE,
	SCHEDULE_ACTION_LOCKDOOR,
	SCHEDULE_ACTION_UNLOCKDOOR,
	SCHEDULE_ACTION_OPENDOOR,
	SCHEDULE_ACTION_CLOSEDOOR,
	SCHEDULE_ACTION_GRIDNO,
	SCHEDULE_ACTION_LEAVESECTOR,
	SCHEDULE_ACTION_ENTERSECTOR,
	SCHEDULE_ACTION_STAYINSECTOR,
	SCHEDULE_ACTION_SLEEP,
	SCHEDULE_ACTION_WAKE,
	NUM_SCHEDULE_ACTIONS
};

The above error happens if a schedule is called for the soldier with the ID 0, which is always a player-controlled merc. This is only partly reasonable, as all other mercs under player control are not 'protected' by this check. This all seems rather weird, and I'm still not sure what is supposed to happen here (as usual, documentation is non-existent).

Edit: Perhaps this is map-editor-related? I assume there must be some mechanism to get civilians to do their daily routines - perhaps you altered sth there? Apart from that, it seems the only consequence will be that a specific schedule isn't called, but this does not seem that serious.

[Updated on: Mon, 07 March 2016 22:11]




Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Illegal Soldier ID[message #344424 is a reply to message #344423] Mon, 07 March 2016 22:11 Go to previous messageGo to next message
edmortimer

 
Messages:779
Registered:January 2015
Location: Home Free
Quote:
The above error happens if a schedule is called for the soldier with the ID 0, which is always a player-controlled merc.


Thank you. After work I'll check the map and see if I can see anything amiss with NPC Schedules.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Illegal Soldier ID[message #344429 is a reply to message #344423] Tue, 08 March 2016 08:09 Go to previous message
edmortimer

 
Messages:779
Registered:January 2015
Location: Home Free
Quote:
Edit: Perhaps this is map-editor-related? I assume there must be some mechanism to get civilians to do their daily routines - perhaps you altered sth there? Apart from that, it seems the only consequence will be that a specific schedule isn't called, but this does not seem that serious.


I checked the map . . . there was a wrong tile designated for locking a door . . . perhaps that was it. Otherwise, everything seems OK with the civilians.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Previous Topic: JA2 Vengeance Mod
Next Topic: Changing Voice File slots for Merchants
Goto Forum:
  


Current Time: Sat Jun 24 06:37:08 EEST 2017

Total time taken to generate the page: 0.00776 seconds