Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 2 users and 139 guests online.

Online users

  • glockgemini
  • ftarzanin

Languages

  • English English
  • French French

Browse archives

« July 2008  
Mo Tu We Th Fr Sa Su
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Distance determination problem

Isopsyco's picture
Submitted by Isopsyco on Sun, 2008-01-20 13:34. SE:V MODs

I have a problem with how SEV does distance determination: for the component that has the ability Open Warp Point to a distance of X light years doesn't do the script doc functions any good because i don't know what the translation factor is. The only two functions that give me distance (three, but the third tells me where a SY is) distance between two hex/sectors and the other between two systems. the problem with the distance between two systems is that its measured in how many systems one must traverse to get from A to B. Neither one of these is in light years, so how does one determine the max range of a open warp point ability to systems?

‹ Praise to Malfador Some Modding Questions ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
RogerN's picture

Re: Distance determination problem

Submitted by RogerN on Sun, 2008-01-20 15:12.

The distance in light years is measured in quadrant coordinates. Each system is assigned a set of coordinates in the quadrant. These coordinates determine where the system appears in your quadrant map. The distance between them is just calculated using the Pythagorean theorem, regardless of any warps that may or may not connect the systems.

I can't remember if the quadrant coordinates are visible in the game interface or not.

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Distance determination problem

Submitted by Isopsyco on Sun, 2008-01-20 15:53.

I didn't know that, thanks. However, there still is the issue of conversion. I can get light year distances manually but not with any function in the script docs and I didn't see any quadrant coordinate function either so I'm still stuck. So I still can't compare an empire's warp point opening component ability distance to a list of system distances because I have no common unit to compare them with.

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Distance determination problem

Submitted by Isopsyco on Sun, 2008-01-20 16:31.

I should have clarified in the original post, this is an AI scripting issue.

» login or register to post comments
Captain Kwok's picture
Mod Designer

Re: Distance determination problem

Submitted by Captain Kwok on Sun, 2008-01-20 17:41.

You could use the standard distance measurement between sectors (or between systems) and make some sort of guideline. If the distance between two systems is 100 sectors, you can assume that system is roughly X light years away.

Of course, the best solution is a new built-in function to return the distance in LYs between two systems.


Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Distance determination problem

Submitted by Isopsyco on Sun, 2008-01-20 17:51.

Captain Kwok wrote:
You could use the standard distance measurement between sectors (or between systems) and make some sort of guideline. If the distance between two systems is 100 sectors, you can assume that system is roughly X light years away.

Of course, the best solution is a new built-in function to return the distance in LYs between two systems.


Space Empires Depot | SE:V Balance Mod

Captain Kwok, is the standard sector distance between systems include the distance between systems or just a tally of sectors with an additional one for the warp point? I've come to think that there is an assumption that there is a warp point system to connect every system given the functions available (like get_distance_between_systems is measured in how many systems a ship has to pass through) and didn't encompass a possibility of a no warp point game where there wouldn't be any WPs to build a system of connected WPs.

I'm still writing some test functions to check out distances and such with the current functions available to see what values actually are returned.

» login or register to post comments
Captain Kwok's picture
Mod Designer

Re: Distance determination problem

Submitted by Captain Kwok on Sun, 2008-01-20 22:45.

Oops. I completely neglected the fact that either of those functions needs active WPs to return anything and would therefore be useless in your situation. We just need a new function to return the LY distance, I don't see anyway around it.


Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Distance determination problem

Submitted by Isopsyco on Sun, 2008-01-20 23:39.

I've tried the system to system distance and it returns zero with no warp points, so your right about the game requiring WPs for those functions to work.

Always running into hurdles that trip me up.....

» login or register to post comments
Mod Designer

Re: Distance determination problem

Submitted by battlespud on Mon, 2008-03-24 14:26.

NOOOOOOOOOOOOOOOooooooooooooooooooooo dont stop now! What if you just made the ai not car eif its in range and try anyway? just make the systems close together or increase FTL range, at least for a with ai bteta?

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Distance determination problem

Submitted by Isopsyco on Mon, 2008-03-24 21:01.

battlespud wrote:
NOOOOOOOOOOOOOOOooooooooooooooooooooo dont stop now! What if you just made the ai not car eif its in range and try anyway? just make the systems close together or increase FTL range, at least for a with ai bteta?
All is well, Aaron has come through and put a script function in the next patch that I requested. I'll actually get the AI to use FTL drives, I get to try all the tactics I have planned out....

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Distance determination problem

Submitted by Isopsyco on Sun, 2008-06-22 12:11.

I did it, FTL drive mod works, the function does what it advertise it could do. Thanks again to Aaron and crew.

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • I am so impressed!
  • Space Empires V 1.74
  • Neutral pack 1.10 released, now adds three neutral races.
  • Stuipd Question
  • Research By Percentage SUCKS

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Catastrophic events are too frequent
  • Display older components
  • Kidnapping intel project.
  • New Patch Released For Space Empires V
  • Space Empires V : Tips and Tricks.
(c) Strategy First, Inc. All rights reserved.