Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: james777 on July 31, 2008, 07:31:42 am
-
How do you make the ships table infinite?
-
That requires code changes, not something that can be done through modding. You do have two options, though:
1) Use an Inferno build, which have a higher limit than regular fs_open builds.
2) Use ship templates, as those can cover several ships in a single table entry.
-
There is always some limit for amount of material that can be loaded into the game.
-
Oh, ok.
-
Having unlimited anything in a game might cause serious memory issues when running it.
Its like opening a container, and never closing it. People keep putting more and more things in it and eventually it overflows.
-
2) Use ship templates, as those can cover several ships in a single table entry.
That won't work, since every ship defined, even ones that use a template, take up room in the ship classes array, which has a capacity of 130.
For those who don't understand the tech speak, that means that ship templates won't allow you to have any more ships.
-
Simplified version:
The array is like a box. With 130 spaces. Even when you use a ship template, each ship in the template, will also take up space in the box. So unless you use an Inferno build, or modify your own code, eventually it will be full.
What happense if you exceed the limit tho? Do the overflowed ships just not appear?
-
The array is like a box. With 130 spaces. Even when you use a ship template, each ship in the template, will also take up space in the box. So unless you use an Inferno build, or modify your own code, eventually it will be full.
Pretty close, but ship templates do not take up space in the ship classes array. The ships that use the templates, however, do. Ship templates have their own array, which is dynamic, meaning that you can have as many ship templates as you want. You are probably asking: why not do this for ships as well? The answer is that a lot of things, including pilot files and multi, rely on their being a limited number of ships.
What happense if you exceed the limit tho? Do the overflowed ships just not appear?
Yes. You can't have more objects in an array than there are spaces available.
-
You need more than 130 ships?
-
Wait for 3.10? release.
You need more than 130 ships?
I know with Saga + mine > 130. I have to disable one before I get a new one to become visible.
-
How many ships are there in the first place? 60 odd ?
-
107
-
is the wep table infinite?
-
No, but there are fewer weapons by default, so there's more room.
-
How many weapons -does- it hold exactly..
-
Forgot. Someone mentioned it at one point...when I was complaining about ship limits.
-
Brief checks for some of the asked limits from the code....
Max number of ship table entries: 130 (multi) / 130 (standard) / 250 (inferno)
Max number of weapon table entries: 200 (standard) / 300 (inferno)
-
IMO Inferno builds should be renamed, as it stands most newbs are confused with the Inferno mod, Inferno R1, Inferno SCP, Inferno Alliance, Inferno builds, etc. etc.
-
Scoob, if you mean 3.6.10, it won't be there. But it won't be as far off as 3.10 either, it should be part of the changes planned for 3.7 I believe. That's still a ways off though.
-
Scoob, if you mean 3.6.10, it won't be there. But it won't be as far off as 3.10 either, it should be part of the changes planned for 3.7 I believe. That's still a ways off though.
My bad, I meant 3.7.
-
IMO Inferno builds should be renamed, as it stands most newbs are confused with the Inferno mod, Inferno R1, Inferno SCP, Inferno Alliance, Inferno builds, etc. etc.
Good point. Especially as the biggest mod using them so far is probably TBP not Inferno. :D
Since the tradition is to name them FS2_Open_VersionNumber_INF.exe we should choose a new name beginning with those letters. Infinity, Inflated, etc. ;)
-
You need more than 130 ships?
Realistically I need about 300, unrealistically about 1000 would be nice... :)
Note 300 would about cover the Federation alone... I would have to serverly limit myself to 100 each faction: Feds, "allies", antagonists "enemies"...
-
o_O So many ?
-
So unless you use an Inferno build, or modify your own code, eventually it will be full.
How do modify the code so it can more ships?
-
Well, you have to learn C++ and Object-Oriented programming first.
-
I just uped the #defines :nervous:
-
I just uped the #defines :nervous:
Just be aware that it will break any pilot files you have