CGS - Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 2 [3]   Go Down

Author Topic: Con editing questions  (Read 4673 times)

0 Members and 1 Guest are viewing this topic.

anvil

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 52
    • View Profile
Logged

High Treason

  • Beach Community Project
  • Enforcer
  • **
  • Offline Offline
  • Posts: 289
  • Fiona, where is you?
    • View Profile
    • Duke Nukem Archive
Re: Con editing questions
« Reply #31 on: July 13, 2014, 11:24:34 PM »

Aha, it is correctly tagged but the Pal is set to 24, this seems to work;

gamevar PA_PAL 0 1

onevent EVENT_LOADACTOR
ifactor NUKEBUTTON
{
  getactor[THISACTOR].pal PA_PAL
  ifvarn PA_PAL 14
  {
    setactor[THISACTOR].pal 0
    setactor[THISACTOR].lotag 65535
  }
}
endevent



This should force it back to pal 0 as well (though visually it is taking the palette of the sector it is located in anyway) and cause the game to treat it as a proper nuke button instead of looking for a nonexistent secret level... I thought only Pal 14 buttons went to secret levels, apparently not. This code shouldn't run on Pal 14 buttons however.
Logged
Yayaya Coco Jamboo, Yayayay!

Forge

  • Overlord
  • *****
  • Offline Offline
  • Posts: 2167
    • View Profile
Re: Con editing questions
« Reply #32 on: July 13, 2014, 11:47:34 PM »

since he's making his own personal episode out of user maps, wouldn't it be easier to just set the pal to 0 in the map itself?
Logged
Take it down to the beach with a hammer and pound sand up your ass

anvil

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 52
    • View Profile
Re: Con editing questions
« Reply #33 on: July 14, 2014, 09:50:09 AM »

This works indeed, thank you  :)
However, since this isn't a full solution, as you wrote, I'll probably encounter issues like this in the future.
« Last Edit: July 14, 2014, 09:56:14 AM by anvil »
Logged

High Treason

  • Beach Community Project
  • Enforcer
  • **
  • Offline Offline
  • Posts: 289
  • Fiona, where is you?
    • View Profile
    • Duke Nukem Archive
Re: Con editing questions
« Reply #34 on: July 14, 2014, 12:15:05 PM »

This is why I suggested code, that will run at the start of every level and thus correct any other nuke button that either isn't tagged right or isn't the correct palette. Of course if a different problem arises it should probably be possible to expand or add code to get rid of it... Or you can edit the maps as Forge suggests.
Logged
Yayaya Coco Jamboo, Yayayay!

anvil

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 52
    • View Profile
Re: Con editing questions
« Reply #35 on: July 17, 2014, 05:10:08 PM »

I got another related question:
What is the code for all the items to be reseted at the beginning of each level in the episode?
Logged

anvil

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 52
    • View Profile
Re: Con editing questions
« Reply #36 on: August 03, 2014, 03:52:23 AM »

I've encountered an issue when playing "military madness" map within an episode:
After I'd finished this map, which ends with an ending zone, the episode ended instead of loading the next level.
Logged

MrScienshit

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Con editing questions
« Reply #37 on: August 04, 2014, 12:41:23 PM »

I thought that was just a single map? Anyway answer
what is the episode?
What should be the next level?
Did you alter the user.con?
Logged

anvil

  • Pig Cop
  • *
  • Offline Offline
  • Posts: 52
    • View Profile
Re: Con editing questions
« Reply #38 on: August 04, 2014, 05:16:28 PM »

It's an episode I made out of user maps.
Anyway, I've solved the problem:
The next level wasn't loaded because I'd inserted its original file name which contained more than one word to user.con.
I didn't know that map's file name in user.con cannot contain more than one word.
« Last Edit: August 04, 2014, 06:51:35 PM by anvil »
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.069 seconds with 21 queries.