Page 1 of 1

The Fake Console and ReadDataFile: how much can you load?

Posted: Thu Mar 31, 2016 2:23 pm
by commanderawesome
I'm trying to find out how much (of anything) you can load at once with a single command in-game.

Typing this:

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
                             "rep_inf_ep2_rifleman",
                             "rep_inf_ep2_rocketeer",
                             "rep_inf_ep2_engineer",
                             "rep_inf_ep2_sniper",
                             "rep_inf_ep3_officer",
                             "rep_inf_ep2_jettrooper",
                             "rep_hover_fightertank",
                             "rep_hero_macewindu")
into the code console - on a map with one class per team and nothing else - crashes the game with this error:

Code: Select all

Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(561)
attempted to allocate from invalid heap -1

Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(538)
Allocating 50444 bytes failed - no free blocks left in Heap -1 ()
So what's the limit?

Re: The Fake Console and ReadDataFile: how much can you load

Posted: Thu Mar 31, 2016 2:49 pm
by DylanRocket
I don't believe you can load new units through Fake Console. You can load new textures and models however.

Re: The Fake Console and ReadDataFile: how much can you load

Posted: Thu Mar 31, 2016 3:04 pm
by AnthonyBF2
I failed to load models from fake console as well. I wanted to make map model/texture reskins in fake console and it crashes with models. Textures only it seems to work. :|

Re: The Fake Console and ReadDataFile: how much can you load

Posted: Thu Mar 31, 2016 3:14 pm
by commanderawesome
I've loaded models and units before. The former is how some Skin Changer commands work. But there appears to be an "upper limit" as to how many units I can load at a time, which is what i'm trying to find.

Re: The Fake Console and ReadDataFile: how much can you load

Posted: Sun May 08, 2016 12:21 am
by [RDH]Zerted
Have you guys tried using ReadDataFileInGame() instead of ReadDataFile()? I was never able to determine the difference between those two functions.

Re: The Fake Console and ReadDataFile: how much can you load

Posted: Sun May 08, 2016 12:27 am
by commanderawesome
[RDH]Zerted wrote:Have you guys tried using ReadDataFileInGame() instead of ReadDataFile()? I was never able to determine the difference between those two functions.
No, i've always thought it was redundant since the latter works in-game, but perhaps the former works better. I'll let you know.