Page 1 of 1

Reopening making maps Juggernaut Frenzy 2017

Posted: Sat Aug 12, 2017 2:26 pm
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

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Fri Aug 18, 2017 8:28 am
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.

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Fri Aug 18, 2017 9:42 am
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();

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Fri Aug 18, 2017 9:47 am
by TommyCD1
I see no problem in game.cfg, so it must be in objects.cfg or in types.cfg.

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Fri Aug 18, 2017 1:28 pm
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"

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Fri Aug 18, 2017 1:29 pm
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);
  }
}

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Sat Aug 19, 2017 10:08 am
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.

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Sat Aug 19, 2017 2:33 pm
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

Re: Reopening making maps Juggernaut Frenzy 2017

Posted: Sat Aug 26, 2017 9:08 am
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.