warmap help with OF

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

warmap help with OF

Postby shanegru » Tue Nov 17, 2015 3:16 am

trying to use /rw with classic its set for new frontiers.. ports work etc..
using old or new keep system dont seem to change it..

if anyone know which file needs edited that be sweet :) or possibly a download fix..
shanegru
DOL Apprentice
 
Posts: 39
Joined: Mon Jul 26, 2010 8:05 am

Re: warmap help with OF

Postby HunabKu » Tue Nov 17, 2015 7:08 am

You need to play with serverproperties, not only with use_warmap_mgr sp.
It works with the last svn and DOLDatabase (see my post)
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: warmap help with OF

Postby shanegru63624 » Wed Nov 18, 2015 12:13 pm

hi guys.. little help plz
ok heres what i did.. keepmanager

public virtual Hashtable Keeps
{
get { return m_keepList; }
}

protected List<Battleground> m_battlegrounds = new List<Battleground>();

public const int DEFAULT_FRONTIERS_REGION = 200; // New Frontiers

public List<uint> m_frontierRegionsList = new List<uint>();

public virtual List<uint> FrontierRegionsList
{

i changed DEFAULT_FRONTIERS_REGION=200; //this is old frontiers but only hib.. it works great

but in OF you need 3 regions.. 200 100 1
how i edit that code to accept all 3? or where is a keepmanager i can use for classic OF
thanks guys yous been alot of help
shanegru63624
DOL Novice
 
Posts: 70
Joined: Tue Jan 28, 2014 10:31 am

Re: warmap help with OF

Postby HunabKu » Wed Nov 18, 2015 12:26 pm

Code: Select all
public const int ALB_FRONTIERS_REGION = 1; public const int MID_FRONTIERS_REGION = 100; public const int HIB_FRONTIERS_REGION = 200;
After you search DEFAULT_FRONTIERS_REGION in code and change for the 3 *_FRONTIERS_REGION
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: warmap help with OF

Postby shanegru63624 » Wed Nov 18, 2015 2:37 pm

thanks hunabku im learning alot.. just by trying to edit.. ok i think you mean edit worldngr.cs
i found this.. sorry dont understand if/else commands..so how to add them 3 need like you sais

// if we don't have at least one frontier region add the default
if (hasFrontierRegion == false)
{
Region frontier;
if (m_regions.TryGetValue(Keeps.DefaultKeepManager.DEFAULT_FRONTIERS_REGION, out frontier))
{
frontier.IsFrontier = true;
}
else
{
log.ErrorFormat("Can't find default Frontier region {0}!", Keeps.DefaultKeepManager.DEFAULT_FRONTIERS_REGION);
}
}

or am i editing the wrong place.. thanks in advance.. i will learn this stuff.. you guys been great
shanegru63624
DOL Novice
 
Posts: 70
Joined: Tue Jan 28, 2014 10:31 am

Re: warmap help with OF

Postby shanegru63624 » Wed Nov 18, 2015 2:39 pm

sorry found DEFAULT_FRONTIERS_REGION in worldmgr

// if we don't have at least one frontier region add the default
if (hasFrontierRegion == false)
{
Region frontier;
if (m_regions.TryGetValue(Keeps.DefaultKeepManager.DEFAULT_FRONTIERS_REGION, out frontier))
{
frontier.IsFrontier = true;
}
else
{
log.ErrorFormat("Can't find default Frontier region {0}!", Keeps.DefaultKeepManager.DEFAULT_FRONTIERS_REGION);
}
}

foreach (Zones dbZone in GameServer.Database.SelectAllObjects<Zones>())
{

so is this correct.. i write it now

Region frontier;
if (m_regions.TryGetValue(Keeps.DefaultKeepManager.HIB_FRONTIERS_REGION, out frontier))

if (m_regions.TryGetValue(Keeps.DefaultKeepManager.ALB_FRONTIERS_REGION, out frontier))

if (m_regions.TryGetValue(Keeps.DefaultKeepManager.MID_FRONTIERS_REGION, out frontier))

im so close to getting this working :))
shanegru63624
DOL Novice
 
Posts: 70
Joined: Tue Jan 28, 2014 10:31 am

Re: warmap help with OF

Postby HunabKu » Wed Nov 18, 2015 3:46 pm

Or you can write like this :
Code: Select all
if (m_regions.TryGetValue(Keeps.DefaultKeepManager.ALB_FRONTIERS_REGION, out frontier) || m_regions.TryGetValue(Keeps.DefaultKeepManager.MID_FRONTIERS_REGION, out frontier) || m_regions.TryGetValue(Keeps.DefaultKeepManager.HIB_FRONTIERS_REGION, out frontier)) { frontier.IsFrontier = true; }
And please use the Code bbcode.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: warmap help with OF

Postby shanegru63624 » Thu Nov 19, 2015 11:15 pm

hi guys
not sure why i cant get this to work lmao.. but i keep on trying.. ok i found this..in keepmanager.cs
Code: Select all
/// Gets all keeps by a realm map /rw /// </summary> /// <param name="map"></param> /// <returns></returns> public virtual ICollection<IGameKeep> GetKeepsByRealmMap(int map) { [code]List<IGameKeep> myKeeps = new List<IGameKeep>(); SortedList keepsByID = new SortedList();
foreach (IGameKeep keep in m_keepList.Values)
{
if (m_frontierRegionsList.Contains(keep.CurrentRegion.ID) == false)
continue;

if (((keep.KeepID & 0xFF) / 25 - 1) == map)
{
keepsByID.Add(keep.KeepID, keep);
}
else if (((keep.KeepID & 0xFF) > 150) && ((keep.KeepID & 0xFF) / 25 - 2) == map)
{
keepsByID.Add(keep.KeepID, keep);
}
}

foreach (IGameKeep keep in keepsByID.Values)
myKeeps.Add(keep);

return myKeeps;
}[/code]
trying to understand this...
just cant get the /rw to show OF keeps.. how annoying
you would think theres a default for nf.. and i only got to change to OF... sureley it cant be this darn hard
ok when it says this..

List<IGameKeep> myKeeps = new List<IGameKeep>();
SortedList keepsByID = new SortedList();
is any of them new= new keeps.. like can i change one of them to old and it show old keeps in region 200/100/1
shanegru63624
DOL Novice
 
Posts: 70
Joined: Tue Jan 28, 2014 10:31 am

Re: warmap help with OF

Postby HunabKu » Fri Nov 20, 2015 5:14 am

This load all keeps in list and sort by region to allow only 'frontiers' region keeps.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest