Rejected by Server - World not Created
Re:
21 years 11 months agoOriginally posted by GrandpaTrout
I am running single player. Do multiplayer maps require some item that is in hoffers wake, but not on my new map? Something the engine code might look for if single or multiplayer?
-Gtrout
You figured it out before I had a chance to reply, but no you don't need a reference to hoffers wake for MP maps. I think thats covered automatically per default in:
iGame.SetGameType( IGT_MultiPlayer );
Have Gun, Will Travel
Please Log in or Create an account to join the conversation.
Re:
21 years 11 months agoOk, sorry. I left somethimg out. Let me recap:grounds_waypoint = iMapEntity.FindByNameInSystem("John1", "John");
This must be the full map file name: "map:/geog/John".
John2 = package name
john1 = map name (notice lowercase)
John = system center (system name)
John1 = planetary body (notice uppercase)
Again, I know these are pathetic names.
The FindByName() and FindByNameInSystem() functions both ask for string variables. Either; the string name of the map entity to find, or both that and the string name of the system. These are both map entities within the map. In neither case does the function make a reference to a url.
So "John1", the planetary body to find,
and "John", the name of the system,
are correct entries for this function. It must be something else.
Or do you mean that you have to identify the system name using the map url?
Code:
grounds_waypoint = iMapEntity.FindByNameInSystem("John1", "map:/geog/john1");
mailto:second_chance@cox.net
cartoons.sev.com.au/index.php?catid=4
.
Please Log in or Create an account to join the conversation.
Re:
21 years 11 months ago
Ok, it's definitely creating the world. When I switch to an external camera I'm staring straight at the sun (and it fills the screen). But I can't move and there's no hud and no ship (although I can hear the HUD clicking). When using the internal camera I can see a small "spot" on the screen near the center, but I don't know what it is. The flux log is not printing either GrandpaTrout's debug message or mine. For clarity here is the full new code:
*edit - whoops, forgot to turn developer mode on[
] That's why it didn't show the debug messages. Unfortunately what I said above is wrong, GT's debug message is coming up. I think it's creating the world but there something wrong with it (I can see the sun but nothing else).
GrandpaTrout, would you mind looking at my map csv file?
mailto:second_chance@cox.net
cartoons.sev.com.au/index.php?catid=4
.
Code:
//
// (c) 1999 Particle Systems Ltd. All Rights Reserved
//
// john1
//
//
// Test package to learn scenario scripting
// Package Name
package john2;
// Imports - the other packages we are using in this script.
uses iGame, iShip, iMapEntity, Sim, iUtilities, Debug;
// Exports - Functions in this package that other scripts can use.
provides Main,
ScenarioMain;
// Enumerators (optional) - Any enumerators for the script defined here.
// Prototypes - Functions defined for use in this package.
// Code starts here
ScenarioMain()
{
iGame.SetGameType(IGT_Mod);
iGame.StartNewGame("map:/geog/john1", "john2");
}
Main()
{
hship player_ship;
hsim grounds_waypoint;
iGame.SetStartSystem("map:/geog/john1");
grounds_waypoint = iMapEntity.FindByNameInSystem("John1", "John");
if (none == grounds_waypoint)
{
debug Debug.PrintString("cannot find target world*********************************");
}else
{
debug Debug.PrintString("Creating World - John*********************************");
}
player_ship = iShip.Create("ini:/sims/ships/player/heavy_corvette_prefitted", "Second Chance");
Sim.SetCollision(player_ship, true);
Sim.PlaceNear(player_ship, grounds_waypoint, 1.0e+9);
Sim.PointAt(player_ship, grounds_waypoint);
iShip.InstallPlayerPilot(player_ship);
}
// END OF FILE
] That's why it didn't show the debug messages. Unfortunately what I said above is wrong, GT's debug message is coming up. I think it's creating the world but there something wrong with it (I can see the sun but nothing else).
Code:
SCRIPT: [unknown] iStartSystem.StartupSpace: Completed
SCRIPT: [unknown] iUtilites.AllowMissionSkipping: called.
SCRIPT: [unknown] cannot find target world*********************************iStartSystem.FinalSetup: Making Performing last minute pre-flight checks...
SCRIPT: [unknown] iStartSystem.finish_loadout: Checking turret fighters, cargo etc...
SCRIPT: [unknown] iWingmen.AddTurretFighters: No turret fighters. EXITING
SCRIPT: [unknown] iStartSystem.finish_loadout: Completed
SCRIPT: [unknown] iStartSystem.FinalSetup: Completed
SCRIPT: [unknown] iBackToBase.Initialise: Game is not in Single Player, iBackToBase disabled.
GrandpaTrout, would you mind looking at my map csv file?
mailto:second_chance@cox.net
cartoons.sev.com.au/index.php?catid=4
.
Please Log in or Create an account to join the conversation.
Re:
21 years 11 months ago
Yes, the system map name must be the full url of the map file. Don't know why the behavior changed. Typically, when an object cannot be found the system will place the object at the very center of a map. Typically inside a sun. This is often a very bad place to be, as the rapidly following heat explosion makes it hard to debug issues. I have never tried it without the sun. And I expect that is what you are seeing. Your ship is in the very center of the map - but not exactly placed yet. A wierd state that no one tests.
Add the if statements and post back the results.
-Gtrout
Add the if statements and post back the results.
-Gtrout
Please Log in or Create an account to join the conversation.
Re:
21 years 11 months ago
:D:D:D:D Ohhhhh Happy Day!!!!! IT WORKS!!!Thanks GrandpaTrout, you were right about the url issue. My system now works perfectly and looks awsome (and systems are so easy to make, thanks to the geog sdk [8D])!
That means my old game design project Space Master is reborn as an EOC mod (I was writing it in Blitz3d, but that is sooo limited).
mailto:second_chance@cox.net
cartoons.sev.com.au/index.php?catid=4
.
Please Log in or Create an account to join the conversation.
Re:
21 years 11 months agoYou new modders have got it too easy. Take a look at the geography I used in Ultimate Freeform Mod. That was done entirely using a hex editor. All over 1000 entities; that was an entire month of my life.and systems are so easy to make, thanks to the geog sdk
Please Log in or Create an account to join the conversation.