In this thread feel free to post questions, queries or help requests regarding the Single Player Framework. Because this thread is linked to from the readme, I'll also post any advanced tutorials or explanations here too.
FAQ
----
Q. How come in some maps I have the inventory display in the top right whereas in others I don't?
A. The inventory system is optional. The mapper can specify whether or not to use the inventory system through the SPLevelInfo actor - specifically the variable bUseInventory.
--
Q. When I place a PlayerStart in my map and then attempt to play, I can't spawn! What gives?
A. Because of the checkpoint system (and the Engine's stubbornness with bStatic), you must use the SPPlayerStart actor (subclassed under PlayerStart) instead. The difference is that these can be manipulated to form the basis of the checkpoint system.
--
Q. Is it possible to make a map with functional vehicles in SPframework?
A. Yes, vehicles are enabled by default. You can either add them in one at a time or use an ASVehicleFactory actor to (re)spawn them.
--
Q. Is it possible to change the properties of a monster like the health,the skill or the attitude to the player, for example, like in the UnrealEd 1.0 (the first unreal)?
A. You can modify the Health value, but currently the Skill value depends on the difficulty you select and the Attitude value is not in the new Pawns. Their attitudes will have to be modified in the code, although I will be perfectly happy to help anyone out with this.
--
Q. I tried to make a map in the unrealed for SP, but there is a problem with the nali, the cows, and the nalirabbit, if they see you, they all run after you, and follow wherever you go, like if they wanted the player to kill them, is there anyway to fix this?
A. Yes, you have to modify the actions they take in the code. Again, I'll help anyone who wants to alter the enemy behaviours.
--
Q. I created a simple SP map, with the SPlevelInfo actor and the SPSpawnPoint actor, but when I try to playtest it, I get the following error message:
Failed to enter Autoplay.ut2?NumBots=0: Can't find file for package 'CodeBase'
History: UGameEngine::Init <- InitEngine <- FMallocWindows::Free <- FMallocWindows::Free
A. Unfortunately, that seems to be Epic's fault - you see, even if you load up UnrealED with the -mod tag, when you playtest it the editor doesn't pass the -mod parameter to ut2004, so it tries to run your map normally, ie not in mod mode. The best thing I can recommend is to launch the SP Framework by hand and try your map out from the menu.
FAQ
----
Q. How come in some maps I have the inventory display in the top right whereas in others I don't?
A. The inventory system is optional. The mapper can specify whether or not to use the inventory system through the SPLevelInfo actor - specifically the variable bUseInventory.
--
Q. When I place a PlayerStart in my map and then attempt to play, I can't spawn! What gives?
A. Because of the checkpoint system (and the Engine's stubbornness with bStatic), you must use the SPPlayerStart actor (subclassed under PlayerStart) instead. The difference is that these can be manipulated to form the basis of the checkpoint system.
--
Q. Is it possible to make a map with functional vehicles in SPframework?
A. Yes, vehicles are enabled by default. You can either add them in one at a time or use an ASVehicleFactory actor to (re)spawn them.
--
Q. Is it possible to change the properties of a monster like the health,the skill or the attitude to the player, for example, like in the UnrealEd 1.0 (the first unreal)?
A. You can modify the Health value, but currently the Skill value depends on the difficulty you select and the Attitude value is not in the new Pawns. Their attitudes will have to be modified in the code, although I will be perfectly happy to help anyone out with this.
--
Q. I tried to make a map in the unrealed for SP, but there is a problem with the nali, the cows, and the nalirabbit, if they see you, they all run after you, and follow wherever you go, like if they wanted the player to kill them, is there anyway to fix this?
A. Yes, you have to modify the actions they take in the code. Again, I'll help anyone who wants to alter the enemy behaviours.
--
Q. I created a simple SP map, with the SPlevelInfo actor and the SPSpawnPoint actor, but when I try to playtest it, I get the following error message:
Failed to enter Autoplay.ut2?NumBots=0: Can't find file for package 'CodeBase'
History: UGameEngine::Init <- InitEngine <- FMallocWindows::Free <- FMallocWindows::Free
A. Unfortunately, that seems to be Epic's fault - you see, even if you load up UnrealED with the -mod tag, when you playtest it the editor doesn't pass the -mod parameter to ut2004, so it tries to run your map normally, ie not in mod mode. The best thing I can recommend is to launch the SP Framework by hand and try your map out from the menu.
Last edited: