DarkOrbit 7.5.3 / 9.0 / 10.0 - Open Source

11/27/2021 00:06 mano79#361
how do I set the starting player to start on map x1?
11/27/2021 05:58 -=Flavio=-#362
Quote:
Originally Posted by mano79 View Post
how do I set the starting player to start on map x1?
player.cs
[Only registered and activated users can see links. Click Here To Register...]
and position.cs
[Only registered and activated users can see links. Click Here To Register...]
11/28/2021 08:32 TriplaxXx991#363
Hello.
How i can make 3D new designs?
11/28/2021 16:27 mano79#364
Quote:
Originally Posted by -=Flavio=- View Post
player.cs
[Only registered and activated users can see links. Click Here To Register...]
and position.cs
[Only registered and activated users can see links. Click Here To Register...]
how can i set the starting player to start on the x1 map?
Whatever I do always on the x8 map starts I don't understand why
11/28/2021 19:29 Akame_Ga_Kill#365
Quote:
Originally Posted by mano79 View Post
how can i set the starting player to start on the x1 map?
Whatever I do always on the x8 map starts I don't understand why
Can someone help this poor boy? atleast he is asking for hints instead of a already made project lol
11/28/2021 20:36 -=Flavio=-#366
Quote:
Originally Posted by TriplaxXx991 View Post
Hello.
How i can make 3D new designs?
Add the files inside the darkorbit "3D" folder, then add it to the "resources_3d" xml, then add it to the main.swf binaries, done!

Quote:
Originally Posted by mano79 View Post
how can i set the starting player to start on the x1 map?
Whatever I do always on the x8 map starts I don't understand why
Could you post your code responsible for the respawn? And did you check if you put it as "startermap" in the database?
11/28/2021 21:50 mano79#367
Quote:
Originally Posted by -=Flavio=- View Post
Add the files inside the darkorbit "3D" folder, then add it to the "resources_3d" xml, then add it to the main.swf binaries, done!



Could you post your code responsible for the respawn? And did you check if you put it as "startermap" in the database?
database exactly how do I add a startermap?
11/28/2021 22:38 #Heizer™#368
:lul:
11/29/2021 05:46 mano79#369
Quote:
Originally Posted by -=Flavio=- View Post
Add the files inside the darkorbit "3D" folder, then add it to the "resources_3d" xml, then add it to the main.swf binaries, done!



Could you post your code responsible for the respawn? And did you check if you put it as "startermap" in the database?
There is no option to startermap in the database

Exactly where to set the starting map in the database?
11/29/2021 12:07 -=Flavio=-#370
Quote:
Originally Posted by mano79 View Post
There is no option to startermap in the database

Exactly where to set the starting map in the database?
[Only registered and activated users can see links. Click Here To Register...]
11/29/2021 15:44 mano79#371
Quote:
Originally Posted by -=Flavio=- View Post
[Only registered and activated users can see links. Click Here To Register...]
it is set to false for me
it doesn't work at all
11/29/2021 16:21 -=Flavio=-#372
Quote:
Originally Posted by mano79 View Post
it is set to false for me
it doesn't work at all
So post the part of the code I asked you for, it's kind of hard to help if I have no idea where the problem is.
11/29/2021 17:08 mano79#373
Quote:
Originally Posted by -=Flavio=- View Post
So post the part of the code I asked you for, it's kind of hard to help if I have no idea where the problem is.
database:
{"StarterMap":false,"PvpMap":false,"RangeDisabled" :false,"CloakBlocked":false,"LogoutBlocked":false, "DeathLocationRepair":true}
public int GetBaseMapId()

player.cs
{
//return FactionId == 1 ? 20 : FactionId == 2 ? 24 : 28;
return FactionId == 1 ? 1 : FactionId == 2 ? 5 : 9;
}

public Position GetBasePosition()
{
return FactionId == 1 ? Position.MMOPosition : FactionId == 2 ? Position.EICPosition : Position.VRUPosition;
}

position.cs
class Position
{
//public static Position MMOPosition = new Position(1800, 7300);
//public static Position EICPosition = new Position(9500, 2800);
//public static Position EICPosition = new Position(10400, 1800);
//public static Position VRUPosition = new Position(18500, 7300);
//public static Position VRUPosition = new Position(19100, 6500);

public static Position MMOPosition = new Position(2000, 2000);
public static Position EICPosition = new Position(18900, 2000);
public static Position VRUPosition = new Position(19000, 11600);

public int X { get; set; }
public int Y { get; set; }

public Position(int x, int y)
{
X = x;
Y = y;
}

public double DistanceTo(Position point)
{
return Math.Sqrt(Math.Pow(point.X - X, 2) + Math.Pow(point.Y - Y, 2));
}

public static Position Random(Spacemap map, int minX = 0, int maxX = 0, int minY = 0, int maxY = 0)
{
if (minX == 0) minX = map.Limits[0].X;
if (minY == 0) minY = map.Limits[0].Y;
if (maxX == 0) maxX = map.Limits[1].X;
if (maxY == 0) maxY = map.Limits[1].Y;

var posX = Randoms.random.Next(minX, maxX);
var posY = Randoms.random.Next(minY, maxY);
return new Position(posX, posY);
}

public static Position GetPosOnCircle(Position circleCenter, int radius)
{
var a = Randoms.random.Next(0, 360);
var calculateX = circleCenter.X + Convert.ToInt32(radius * Math.Cos(a));
var calculateY = circleCenter.Y + Convert.ToInt32(radius * Math.Sin(a));

return new Position(calculateX, calculateY);
}
}
}

it doesn't work for me always puts the new player on the x8 map i want to put the new players on the x1 map but it doesn't work
11/29/2021 17:14 Prototype2597#374
[Only registered and activated users can see links. Click Here To Register...]

Adding "AutoLooting" for PET - COMPLETE
11/29/2021 17:24 -=Flavio=-#375
Quote:
Originally Posted by mano79 View Post
database:
{"StarterMap":false,"PvpMap":false,"RangeDisabled" :false,"CloakBlocked":false,"LogoutBlocked":false, "DeathLocationRepair":true}
public int GetBaseMapId()

player.cs
{
//return FactionId == 1 ? 20 : FactionId == 2 ? 24 : 28;
return FactionId == 1 ? 1 : FactionId == 2 ? 5 : 9;
}

public Position GetBasePosition()
{
return FactionId == 1 ? Position.MMOPosition : FactionId == 2 ? Position.EICPosition : Position.VRUPosition;
}

position.cs
class Position
{
//public static Position MMOPosition = new Position(1800, 7300);
//public static Position EICPosition = new Position(9500, 2800);
//public static Position EICPosition = new Position(10400, 1800);
//public static Position VRUPosition = new Position(18500, 7300);
//public static Position VRUPosition = new Position(19100, 6500);

public static Position MMOPosition = new Position(2000, 2000);
public static Position EICPosition = new Position(18900, 2000);
public static Position VRUPosition = new Position(19000, 11600);

public int X { get; set; }
public int Y { get; set; }

public Position(int x, int y)
{
X = x;
Y = y;
}

public double DistanceTo(Position point)
{
return Math.Sqrt(Math.Pow(point.X - X, 2) + Math.Pow(point.Y - Y, 2));
}

public static Position Random(Spacemap map, int minX = 0, int maxX = 0, int minY = 0, int maxY = 0)
{
if (minX == 0) minX = map.Limits[0].X;
if (minY == 0) minY = map.Limits[0].Y;
if (maxX == 0) maxX = map.Limits[1].X;
if (maxY == 0) maxY = map.Limits[1].Y;

var posX = Randoms.random.Next(minX, maxX);
var posY = Randoms.random.Next(minY, maxY);
return new Position(posX, posY);
}

public static Position GetPosOnCircle(Position circleCenter, int radius)
{
var a = Randoms.random.Next(0, 360);
var calculateX = circleCenter.X + Convert.ToInt32(radius * Math.Cos(a));
var calculateY = circleCenter.Y + Convert.ToInt32(radius * Math.Sin(a));

return new Position(calculateX, calculateY);
}
}
}

it doesn't work for me always puts the new player on the x8 map i want to put the new players on the x1 map but it doesn't work

Does it only put new players on the x-8 map or when you die will it also end up there?