Author Topic: Maximum number of waypoints...?  (Read 2084 times)

0 Members and 1 Guest are viewing this topic.

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Maximum number of waypoints...?
I heard somewhere that there's a max number of waypoints (maybe it was waypoint paths) FSO can handle in a mission. I tried with the Wiki, but there aren't any references in this Wiki article.

Is the maximum number of waypoints and/or waypoint paths unlimited? If so, it seems a bit strange giving the limits both Retail FS2 and FSO have.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Maximum number of waypoints...?
#define MAX_WAYPOINTS_PER_LIST 20
#define MAX_WAYPOINT_LISTS 32
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Maximum number of waypoints...?
It's in the wiki now.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Maximum number of waypoints...?
Another question - what kind of oddities are known to occur if someone goes well beyond the limit? Does the mission crash upon clicking on "Commit"?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline Echelon9

  • 210
Re: Maximum number of waypoints...?
Another question - what kind of oddities are known to occur if someone goes well beyond the limit? Does the mission crash upon clicking on "Commit"?
As these are used to define fixed sized arrays in a number of oft used structs, I believe that if you manually added too many waypoints manually to the mission using Notepad then trying to play the mission could cause all kinds of bad out-of-array memory corruption. Probably.

Code: [Select]
typedef struct waypoint_list {
char name[NAME_LENGTH];
int count;
char flags[MAX_WAYPOINTS_PER_LIST];
vec3d waypoints[MAX_WAYPOINTS_PER_LIST];
} waypoint_list;

But that's just from looking at the code and using the well known mark 1 human brain compiler. Give it a test.


 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Maximum number of waypoints...?
...I believe that if you manually added too many waypoints manually to the mission...

The Department of Redundancy Department issues you a fine.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Maximum number of waypoints...?
I'm asking because I have a mission featuring a great many waypoints and waypoints paths crashing upon clicking on Commit. FRED2 Open let me place the waypoints, I did not need Notepad to hack the mission, but still... :nervous:

Also, I edited the Wiki article to replace "list" and "lists" with "path" and "paths", respectively. I thought it was more appropriate. :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Maximum number of waypoints...?
FRED also allowed you to place far too many ships in a mission as well (and maybe still does if you're insane enough to add 401 ships to a mission).

FRED frequently uses a different array to hold data in from the one that is used in-game so hitting the limit in one doesn't always mean you'll hit it in the other.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Maximum number of waypoints...?
FRED frequently uses a different array to hold data in from the one that is used in-game so hitting the limit in one doesn't always mean you'll hit it in the other.

What do you mean?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline Angelus

  • 210
  • The Angriest Angel
Re: Maximum number of waypoints...?
FRED frequently uses a different array to hold data in from the one that is used in-game so hitting the limit in one doesn't always mean you'll hit it in the other.

What do you mean?

If i understand that correctly, it means FRED allows you to exceed the limit of waypoints and probably ships.
The game engine doesn't.


It seems i have to cheat to make my mission work.

  

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Maximum number of waypoints...?
Oh right, I didn't get what "other" stands for in that post. :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito