Author Topic: Mod needs to add info_xxxxxx_intermission for Karith map  (Read 7287 times)

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Mod needs to add info_xxxxxx_intermission for Karith map
« on: December 18, 2010, 05:50:22 am »
Since I started testing my mod, I seem to have found that there are maps that contain no classes named 'info_alien_intermission', 'info_human_intermission', and 'info_player_intermission'. For example, Karith doesnt seem to have them and there is no way to see whats in the .map file as there isnt one in the pk3 file.

Now I find myself asking for assistance again as I have no idea where these values are loaded by the server on a normal map and how they are created (for reference).

Can someone tell me where in the code the server does this? What I want is to add it to the map during runtime (via g_admin_specint(), G_LayoutSetIntermission(), and G_LayoutLoad()) if it doesnt already have it.

BTW, my patch can be downloaded here.

Any help offered would be very much appreciated. Thanks.
« Last Edit: December 18, 2010, 08:49:32 am by WoGoMo »
There is no sig...

CreatureofHell

  • Posts: 2422
  • Turrets: +430/-126
    • Tremtopia
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #1 on: December 18, 2010, 12:18:04 pm »
But they have to have info_player_intermission...
« Last Edit: December 18, 2010, 05:11:28 pm by CreatureofHell »
{NoS}StalKer
Quote
<Timbo> posting on the trem forums rarely results in anything good

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #2 on: December 18, 2010, 12:30:56 pm »
But the have to have info_player_intermission...

I know right? But on Karith, for some reason, the following code:
Code: [Select]
spot = G_Find( spot, FOFS( classname ), "info_alien_intermission" );
returns NULL. Same thing happens for info_human_intermission and info_player_intermission.
There is no sig...

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #3 on: December 19, 2010, 01:11:42 pm »
It turns out Karith has 2x info_player_deathmatch/info_player_start (with the other being between window corridor and large stairs room). AU rox btw.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #4 on: December 19, 2010, 02:42:31 pm »
Quote
Can someone tell me where in the code the server does this?
grep is your friend and if it doesn't help, start looking in likely places until you find what you're looking for. Like anyone else.

Look in src/game/g_client.c at G_SelectAlienLockSpawnPoint and G_SelectHumanLockSpawnPoint, and at FindIntermissionPoint in src/game/g_main.c
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #5 on: December 19, 2010, 05:45:52 pm »
grep is your friend and if it doesn't help, start looking in likely places until you find what you're looking for. Like anyone else.

Grep is already my friend and has been for a very long time. Yes I have used it to find 'info_xxxx_intermission' and it only shows me how to get it from a map that HAS it. What I am hoping to find is how to allocate/create the entity/object (or whatever u call it) if it doesnt exist in the map.

Look in src/game/g_client.c at G_SelectAlienLockSpawnPoint and G_SelectHumanLockSpawnPoint, and at FindIntermissionPoint in src/game/g_main.c

These functions run after the map have already been loaded and tries to find a pre-spawn point in the map. I do understand that it first looks for info_xxxxx_intermission, and if those do not exist then, it looks for info_player_deathmatch. Not really what I am looking for which is how to create 'info_xxxx_intermission' when it does not exist.

Anyway, thanks very much for the explanation.
There is no sig...

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #6 on: December 19, 2010, 05:57:50 pm »
It turns out Karith has 2x info_player_deathmatch/info_player_start (with the other being between window corridor and large stairs room). AU rox btw.

Karith has always struck me as odd, ever since I found out about the glitch egg bug which allows aliens to spawn outside the map. Ever since I found out that it doesnt have intermission points, I guess I cant help but think that the map is somewhat broken.
There is no sig...

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #7 on: December 19, 2010, 08:03:06 pm »
Not really what I am looking for which is how to create 'info_xxxx_intermission' when it does not exist.
You allocate/reuse an entity with G_Spawn() and set it up yourself
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Re: Mod needs to add info_xxxxxx_intermission for Karith map
« Reply #8 on: December 20, 2010, 01:23:45 am »
You allocate/reuse an entity with G_Spawn() and set it up yourself

Thank you very much.

Update 2010-12-22: Haven't had time to do much about this just yet. Meanwhile I've put in a few very trivial changes involving /callvote map change/nextmap/restart.
« Last Edit: December 22, 2010, 09:17:38 am by WoGoMo »
There is no sig...