Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
53 user(s) are online (36 user(s) are browsing Forum)

Members: 0
Guests: 53

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +225€

Current balance: +35€
(last updated 01/2019)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 50 users playing Freelancer on 30 servers.
January. 19, 2019

Browsing this Thread:   2 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2) 3 4 »


Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
Quote:

FriendlyFire wrote:
Pretty sure adoxa means a plugin that just does a preprocessing pass to the INIs as they're read by Freelancer. You'd just be able to use pos_begin and pos_end directly in the INIs.


Thanks. That was the original proposal, but a fairly uneducated one I must admit; I actually doubted whether it'd be possible at all!

Posted on: 12/2 8:37
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
Quote:

adoxa wrote:

Have fun...

Hey thanks a million!! As always I'm baffled to see how you are able to change seemingly every aspect of the game with a plugin!

It'll have to wait to (hopefully) this evening (on my part of the globe); got a family event today.

Btw I couldn't submit my previous message (wrote that before I went to sleep).


Quote:

adoxa wrote:

converting

It's not necessary to convert all the vanilla paths into the new format, I hope? Oh well, I'll see that (hopefully) tonight.

Posted on: 12/2 8:45
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1884
Offline
Quote:
It's not necessary to convert all the vanilla paths into the new format, I hope?

No, that was just something to test.

Posted on: 12/2 8:53
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
First test.

I'm getting an almost, but not quite, perfect result, and the oddness of where it is not perfect, baffles me:

Open in new window


It would have made more sense to me if all the paths would have their angle mirrored (because that is what seems to be wrong with the 2nd leg), not just one of them.

This is the code (and I also tried with adding a pos_begin to every leg, which rendered the same result, and with and without CYLINDER in leg 2, 3 an 4) :

Code:

[zone]
nickname = Zone_Br07_xpath_mollys9_1
shape = CYLINDER
size = 750
;--------------------------------LD-4
pos_begin = 29834, 0, -47360
pos_end = 71125, 0, 3996
;--------------------------------TLR_47
attack_ids = br07_4
tradelane_attack = 15
sort = 99
toughness = 13
density = 3
repop_time = 90
max_battle_size = 4
pop_type = attack_patrol
relief_time = 30
path_label = mollys9, 1
usage = patrol
mission_eligible = True
faction_weight = fc_m_grp, 10
density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller
density_restriction = 4, lawfuls
density_restriction = 4, unlawfuls
encounter = patrolp_assault, 13, 0.290000
faction = fc_m_grp, 1.000000
visit = 1

[zone]
nickname = Zone_Br07_xpath_mollys9_2
shape = CYLINDER
size = 750
pos_end = 60000, 0, 9800
attack_ids = br07_4
tradelane_attack = 15
sort = 99
toughness = 13
density = 3
repop_time = 90
max_battle_size = 4
pop_type = attack_patrol
relief_time = 30
path_label = mollys9, 2
usage = patrol
mission_eligible = True
faction_weight = fc_m_grp, 10
density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller
density_restriction = 4, lawfuls
density_restriction = 4, unlawfuls
encounter = patrolp_assault, 13, 0.290000
faction = fc_m_grp, 1.000000
visit = 1

[zone]
nickname = Zone_Br07_xpath_mollys9_3
shape = CYLINDER
size = 750
pos_end = 61500, 0, 15500
;--------------------------------TLR_45
attack_ids = br07_4
tradelane_attack = 15
sort = 99
toughness = 13
density = 3
repop_time = 90
max_battle_size = 4
pop_type = attack_patrol
relief_time = 30
path_label = mollys9, 3
usage = patrol
mission_eligible = True
faction_weight = fc_m_grp, 10
density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller
density_restriction = 4, lawfuls
density_restriction = 4, unlawfuls
encounter = patrolp_assault, 13, 0.290000
faction = fc_m_grp, 1.000000
visit = 1

[zone]
nickname = Zone_Br07_xpath_mollys9_4
shape = CYLINDER
size = 750
pos_end = 79038, 0, 41800
;--------------------------------Omega=3 Hole
attack_ids = br07_4
tradelane_attack = 15
sort = 99
toughness = 13
density = 3
repop_time = 90
max_battle_size = 4
pop_type = attack_patrol
relief_time = 30
path_label = mollys9, 4
usage = patrol
mission_eligible = True
faction_weight = fc_m_grp, 10
density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller
density_restriction = 4, lawfuls
density_restriction = 4, unlawfuls
encounter = patrolp_assault, 13, 0.290000
faction = fc_m_grp, 1.000000
visit = 1





(Btw the disconnected path does *not* cause a crash. That sounds good but it might actually mean there are now encounters at all. The whole thing is in a huge pop zone; I'll turn that off in the next test so that I can be sure that any molly that I encounter, is generated by the path. But, that has less priority than reporting this.)

Posted on: 12/3 10:38
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1884
Offline
Try swapping begin & end (sorry, I meant to mention that).

Posted on: 12/3 10:57
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
Quote:

adoxa wrote:
Try swapping begin & end (sorry, I meant to mention that).


I presume that you mean for the entire path?

On it... (and after that I gotta do some offline things as well (sucks)

Posted on: 12/3 11:42
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1884
Offline
Quote:
Moonhead wrote:
Quote:
adoxa wrote:
Try swapping begin & end (sorry, I meant to mention that).

I presume that you mean for the entire path?

No, just that particular section.

Posted on: 12/3 11:50
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
That renders the first and last leg reversed, but leg 2 and 3 seem to be okay now...

EDIT: No, only leg 2 is okay now (leg 2 and 3 are small so it's not apparent at first sight) so the results are exacyly opposed to the first test.

Open in new window

Posted on: 12/3 11:56
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1884
Offline
Hm, looks like I'm going to have to do a bit more testing myself...

Posted on: 12/3 12:03
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
The paths seem to be in the proper position. So my layman's assumption is that the issue is with how the angles are calculated. I find it odd that not all the angles are mirrored though...

Btw apparently tests 1 and 2 rendered the exact opposed angles in the paths.

Posted on: 12/3 12:24
Open in new window
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
Adoxa wait!!

Just noticed that a rotation value in one of the vanilla-style paths got mauled! Maybe that caused the issue!

EDIT, No it matters not. With the error in that vanilla-style-path* corrected, the path-new-style still has the same issie.

*I presume that that path just somehow inherited the value of its predecessor? (Although I once tried to see how much is inherited, and was disappointed.)

Posted on: 12/3 12:32
Open in new window
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1884
Offline
Since I don't really know what I'm doing, I took the simple approach and added an extra parameter to pos_end that flips the rotation. Now you should be able to have a single pos_begin, with a chain of pos_ends, manually adding flip to the legs that aren't right. I hope.

Attach file:


zip ZonePos.zip Size: 5.29 KB; Hits: 14

Posted on: 12/4 0:10
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
Thanks, I'll test that tonight.

Btw some vanilla paths have 90, but other -90 as the first rotation value. I don't know how significant that is here, but iirc if you reverse these values (turning 90 into -90 or vice versa), those paths show the same behavior as the faulty paths generated by ZonePos.

No success with looking into the Trade Lane Calculator? That tool does the angles right.

I have absolutely no idea how complicated it is to create such a standalone tool like the TLC or your XML->UTF (and vice versa) converter. But as I've always been content with the TLC (although I do find a bit annoying that it writes a visit = 1 line to every single Trade Lane Ring) , I always wondered why the same dude didn't make a path (a single leg of a path that is) calculator, which would be similar. Maybe he already left the scene before paths were even discussed; iirc the TLC was a very early tool.

Posted on: 12/4 9:22
Open in new window
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1884
Offline
Quote:
Btw some vanilla paths have 90, but other -90 as the first rotation value. I don't know how significant that is here, but iirc if you reverse these values (turning 90 into -90 or vice versa), those paths show the same behavior as the faulty paths generated by ZonePos.

That's effectively what swapping begin/end did; flip does it by subtracting 180.

Quote:
No success with looking into the Trade Lane Calculator? That tool does the angles right.

That wasn't my experience with these paths. Both this and FLDev generated <0, n, 0>, which apparently is a vertical cylinder. I add 90 to the X-rotation and swap the X values for Y & Z.

Quote:
[...] although I do find a bit annoying that it writes a visit = 1 line to every single Trade Lane Ring [...]

Change 2E88 from 31 (1) to 30 (0) to write visit = 0 instead.

Quote:
[...] iirc the TLC was a very early tool.

V2 is from May 2004, so about a year after FL was released.

Posted on: 12/4 11:52
Top
Re: Request: an easier way to implement paths (no idea whether this is even possible)
Home away from home
Joined:
2010/2/22 0:47
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 922
Offline
Quote:

adoxa wrote:
Quote:

Moonhead wrote:
[...] although I do find a bit annoying that it writes a visit = 1 line to every single Trade Lane Ring [...]

Change 2E88 from 31 (1) to 30 (0) to write visit = 0 instead.

Thanks, but tbh that'd be just annoying A visit = entry isn't necessary, and hence redundant, for Trade Lane Rings. Could you think of a heck that totally eliminates the entire line from the generated code?

About to download and test the updated ZonePos now.

Posted on: 12/4 12:52
Top
« 1 (2) 3 4 »