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 is currently offline edmortimer

 
Messages:1533
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.

Report message to a moderator

Sergeant Major
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:3507
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]




I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

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.

Report message to a moderator

Captain

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 is currently offline edmortimer

 
Messages:1533
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.

Report message to a moderator

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

 
Messages:1533
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.

Report message to a moderator

Sergeant Major
Previous Topic: New Skills Possible
Next Topic: Changing Voice File slots for Merchants
Goto Forum:
  


Current Time: Wed Feb 19 08:11:18 GMT+2 2025

Total time taken to generate the page: 0.01146 seconds