Reopening making maps Juggernaut Frenzy 2017

Maps that are being worked on. You can post your teaser here.
Post Reply
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Reopening making maps Juggernaut Frenzy 2017

Post by Petas »

Hi

Will you help me in creating a new map?

I need help with code. Objective_players.CFG

Code: Select all

CreateObjectType("Team1", "Objective")
{
  Condition("TRUE");
  Action()
  {
    Cmd("sound.player.clear");
    Cmd("exec music_common_list.cfg");
    Cmd("sound.player.play");

    // objective
    DisplayObjective("Add","team1_obj",0)
    {
      Text("#missions.gb.garden.objective");
    }

    NewObjective("objective_team1_starta");
  }
}

CreateObjectType("objective_team1_starta", "Objective")
{
  Condition("HaveType")
  {
    Type("Juggernaut Factory")
    {
      Amount(1);
      Operator("<");
    }
  }
  Action()
  {
    NewObjective("common.timer.lose");
  }
}



CreateObjectType("Team2", "Objective")
{
  Condition("TRUE");
  Action()
  {
    Cmd("sound.player.clear");
    Cmd("exec music_common_list.cfg");
    Cmd("sound.player.play");

    // objective
    DisplayObjective("Add","team2_obj",0)
    {
      Text("#missions.gb.garden.objective");
    }

    NewObjective("objective_team2_starta");
  }
}

CreateObjectType("objective_team2_starta", "Objective")
{
  Condition("HaveType")
  {
    Type("Juggernaught Factory")
    {
      Amount(1);
      Operator("<");
    }
  }
  Action()
  {
    NewObjective("common.timer.lose");
  }
}
This is map Juggernaut Frenzy Snowy
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
User avatar
TommyCD1
Moderator
Moderator
Posts: 1143
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Reopening making maps Juggernaut Frenzy 2017

Post by TommyCD1 »

There's not much I can do without a computer at home to work with your files, but from what I can see in the video I'd say you have forgotten to give each team their starting objectives.

I can see no problems in the objective_players.cfg, so your problem must lie elsewhere.

In your mission folder, see if you have a file called types_mission.cfg. If not, then you can just use types.cfg

In types.cfg, or types_mission.cfg if you have it, you should include this text on a separate line:
  • #include "objective_players.cfg"
This is make sure the game finds your objective_players.cfg file.
Also note that if you have a types_mission.cfg file, it MUST be included as so in types.cfg, or else the game will not find types_mission.cfg either.

The next step is to make sure your starting objectives are called in your objects.cfg file. You should add this code to the end of the .cfg file if they do not already exist:
  • CreateObject("Team1", xx) // xx should be a number that is not already in use}
There's much more lines to add than this, but unfortunately I can't remember what they are off the top of my head and I don't have any resources available to me to look it up now, but I hope you can recognize what you need to add by what I've provided.

Finally, the next step is to give each team their objectives using game.cfg.
You do this by finding their Objectives() line and adding these lines under it:

Code: Select all

  {
    ReaperId(xx); // xx should be the same number defined in objects.cfg
  }
Make sure Objectives() has no ; at the end of it and also make sure you include the { and } brackets, else the game will crash.

This is the best help I can provide at this time, but I hope it offers some guidance to you. When I get my comp at home running, I can go much more in depth if you still need help.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Re: Reopening making maps Juggernaut Frenzy 2017

Post by Petas »

I do not know if there is no error in the game. CFG and in objects. CFG

I give both kods

And objects.cfg I have to upload to the cloud because through the forum can not read. Objects.cfg

Game.cfg

Code: Select all

RuleSet("None");

WorldInfo()
{
  CellMapX(92);
  CellMapZ(92);
  MiniMapRotation(315.000000);
}

Environment()
{
  Rain();

  Light()
  {
    CycleTime(600.000000);
    CurrentTime(0.300000);
    LastTime(0.300000);
    StartTime(0.300000);
    DayStartTime(0.250000);
    DayEndTime(0.750000);
    SunriseStartTime(0.000000);
    SunriseEndTime(0.442857);
    SunsetStartTime(1.000000);
    SunsetEndTime(1.000000);

    Colors()
    {
      Add()
      {
        Fraction(0.500000);
        Ambient(25, 25, 25, 255);
        Sun(255, 255, 255, 255);
        Fog(153, 153, 153, 255);
      }
    }
  }

  Time()
  {
    Day(1);
    Month(1);
    Year(2000);
  }
}

DefineTeams()
{
  CreateTeam("Team1", 0)
  {
    Color(29, 240, 39);

    Relations()
    {
      With("Team1", "Ally");
      With("Team2", "Enemy");
      With("crates", "Enemy");
    }

    DefaultClient(1);
    AvailablePlay(1);
    HasStats(1);
    PermanentRadar(0);
    RequireAI(0);
    Side("sprawler");
    SideFixed(1);

    Objectives()
    {
      ReaperId(15);
    }

    StartRegion(2);
    StartPoint(0.209779, 0.546421);
    StartYaw(0.000000);
    Personality("None");
    PainCurrentCluster(0);
    UniqueScriptId(0);
    ResourceStore(0);
  
    Storage()
    {
      Add("Plastic", 999999);
      Add("Electricity", 999999);
    }
  }

  CreateTeam("Team2", 1)
  {
    Color(183, 138, 2);

    Relations()
    {
      With("Team1", "Enemy");
      With("Team2", "Ally");
      With("crates", "Enemy");
    }

    DefaultClient(0);
    AvailablePlay(1);
    HasStats(1);
    PermanentRadar(0);
    RequireAI(0);
    Side("jda");
    SideFixed(1);

    Objectives()
    {
     ReaperId(16);
    }

    StartRegion(9);
    StartPoint(0.806032, 0.545542);
    StartYaw(0.000000);
    Personality("None");
    PainCurrentCluster(0);
    UniqueScriptId(0);
    ResourceStore(0);
  
   Storage()
    {
      Add("Plastic", 999999);
      Add("Electricity", 999999);
    }
  }

  CreateTeam("crates", 2)
  {
    Color(202, 162, 75);

    Relations()
    {
      With("Team1", "Enemy");
      With("Team2", "Enemy");
      With("crates", "Ally");
    }

    DefaultClient(0);
    AvailablePlay(0);
    HasStats(0);
    PermanentRadar(0);
    RequireAI(0);
    Side("sprawler");
    SideFixed(1);
    Objectives();
    StartRegion(354);
    StartPoint(0.499211, 0.562207);
    StartYaw(0.000000);
    Personality("None");
    PainCurrentCluster(0);
    UniqueScriptId(0);
    ResourceStore(0);
  }
}

World("Sigma");
Camera();

Physics()
{
  Gravity(9.800000);
}

MissionVar();
Last edited by Petas on Fri Aug 18, 2017 9:53 am, edited 1 time in total.
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
User avatar
TommyCD1
Moderator
Moderator
Posts: 1143
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Reopening making maps Juggernaut Frenzy 2017

Post by TommyCD1 »

I see no problem in game.cfg, so it must be in objects.cfg or in types.cfg.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Re: Reopening making maps Juggernaut Frenzy 2017

Post by Petas »

Code: Select all

#include "types_mission.cfg"

#include "types_world.cfg"

// Mission specific
// Objects
//Walllinks 
#include "types_objects_genericfx_sprawler_walllink.cfg"

#include "obj_army.cfg"


// Juggernaut Factory
#include "types_objects_sprawlers_juggernaut.cfg"
#include "obj_jda_juggernaut_factory.cfg"
#include "types_objects_sprawlers_aptower.cfg"
#include "types_objects_sprawlers_fencepost.cfg"


// resources
#include "obj_resource_blob.cfg"

// General
#include "types_physics.cfg"
#include "types_traction.cfg"
#include "types_effects_bare.cfg"
#include "types_common.cfg"
#include "types_quakes.cfg"
#include "types_messages.cfg"
#include "types_radio.cfg"
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Re: Reopening making maps Juggernaut Frenzy 2017

Post by Petas »

Types_mission.cfg

Code: Select all

#include "objectives_players.cfg"

CreateObjectType("army.unit.nullmesh", "Unit")
{
  GameObj()
  {
    ThinkInterval(1);
    IdleTask("Tasks::UnitIdle");
    Properties();
  }
  MapObj()
  {
    GodFile("direction_node.god");
    Mesh();
    TractionType("flyer");
  }
  UnitObj()
  {
    SeeingRange(89);
  }
}
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
User avatar
TommyCD1
Moderator
Moderator
Posts: 1143
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Reopening making maps Juggernaut Frenzy 2017

Post by TommyCD1 »

Again, I see no problems so it must be in objects.cfg. Unfortunately, I cannot download and read it at the time so I can't help you with that.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
User avatar
Petas
Map Maker
Map Maker
Posts: 563
Joined: Tue Jan 06, 2015 1:34 pm
Location: Czech Republic
Contact:
Czech Republic

Re: Reopening making maps Juggernaut Frenzy 2017

Post by Petas »

again studied the game. CFG and objects. cfg files and found the error.

I did not have the objects written in this : Objects.cfg

Code: Select all

CreateObject("objective_team1_start", 677)
{
  ObjectiveObj()
  {
    Condition();
  }
}

CreateObject("objective_team2_start", 678)
{
  ObjectiveObj()
  {
    Condition();
  }
}
and problem in objective_players.cfg

Image

Issue is resolved :GAME:

The map could already be released.

Still test it
I'm not saying I have good maps and that I'm a great player. I'm giving into that the most of my time.
WebSite https://petasv.wixsite.com/petasvideos
Youtube : https://www.youtube.com/PetasVideosTV
GameRanger ID 5603072
DISCORD ID : PetasVideosTV#9499
User avatar
TommyCD1
Moderator
Moderator
Posts: 1143
Joined: Tue Jun 04, 2013 8:55 am
Location: East Coast
Contact:
United States of America

Re: Reopening making maps Juggernaut Frenzy 2017

Post by TommyCD1 »

Alright, I'm glad I could help you find it, although I didn't really do much. Can't wait to play it when I get back online soon.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
Image
"Can we order a pizza?"
GameRanger ID: 913974
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest