Fractal Softworks Forum
March 28, 2024, 10:57:43 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Starsector 0.97a is out!
(02/02/24); New blog post:
Simulator Enhancements
(03/13/24)
Home
Help
Search
Login
Register
Fractal Softworks Forum
>
Starsector
>
Mods
>
Modding
>
Generic List of Factions?
« previous
next »
Pages: [
1
]
Print
Author
Topic: Generic List of Factions? (Read 1399 times)
xenoargh
Admiral
Posts: 5078
naively breaking things!
Generic List of Factions?
«
on:
September 15, 2012, 02:09:12 PM »
Was wondering if there's a generic way to pull a list / array with all the Factions so that I can iterate through them without having to know their names.
Logged
Please check out my SS projects
Xeno's Mod Pack
Darloth
Admiral
Posts: 592
Re: Generic List of Factions?
«
Reply #1 on:
September 18, 2012, 05:16:40 AM »
Not yet.
I've done it before by iterating through all of the fleets on a slowish-but-regular basis (since it's quite expensive. Once a game day maybe?), and adding any new ones that show up to a list of factions held by whatever you're doing, but it's certainly not perfect. I didn't find any better method currently, and Alex has said that the faction system is quite placeholder at the moment, so it will probably be replaced entirely at some point.
Logged
Print
Pages: [
1
]
« previous
next »
Fractal Softworks Forum
>
Starsector
>
Mods
>
Modding
>
Generic List of Factions?