Author Topic: I think I found an engine limitation  (Read 4892 times)

0 Members and 1 Guest are viewing this topic.

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
I think I found an engine limitation
A debriefing stage is limited to 2,000 characters. You can exceed this 2,000-character limit in a debriefing, but you need to use more than one debrief stage to do that.

I stumbled on this limitation when I expanded one of my debriefing in WordPad, and found that the game engine and FRED could no longer open it.

It's 100% reproduceable, but I have only one comp to test it with, so I need confirmation whether this limitation is indeed there, or it's simply my comp that's not powerful enough, which I doubt.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: I think I found an engine limitation
Sure it's not 2048?  Think just about every section in FRED has a limit of either 2048 characters.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: I think I found an engine limitation
I'm not sure, but at 2,100 characters, it certainly crashes.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline Echelon9

  • 210
Re: I think I found an engine limitation
Sounds about right. That's surely a fixed size buffer limit in the engine. We're working on getting rid of as many of those limits as possible as the FS2 Open codebase slowly adopts C++ features.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: I think I found an engine limitation
I think that it shouldn't be too high priority now, if a debriefing stage is a 2048 characters wall of text, it should be broken into stages anyway.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: I think I found an engine limitation
I think that it shouldn't be too high priority now, if a debriefing stage is a 2048 characters wall of text, it should be broken into stages anyway.

The problem is that you don't know what's wrong because the game crashes without an informative error message. If you run the game immediately after changing the debriefing, and only the debriefing, then you'll figure out what's wrong. Otherwise, you may suspect that something else is going wrong, say, with a ship or an event. The debriefing is the last place you'd look for possible errors.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline Iss Mneur

  • 210
  • TODO:
Re: I think I found an engine limitation
I think that it shouldn't be too high priority now, if a debriefing stage is a 2048 characters wall of text, it should be broken into stages anyway.

The problem is that you don't know what's wrong because the game crashes without an informative error message. If you run the game immediately after changing the debriefing, and only the debriefing, then you'll figure out what's wrong. Otherwise, you may suspect that something else is going wrong, say, with a ship or an event. The debriefing is the last place you'd look for possible errors.

A crash with no error even with a debug build?
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: I think I found an engine limitation
I get an error message that complains about insufficient memory. It's a Windows in-built message, not an FSO one.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: I think I found an engine limitation
I could be using strcpy instead of strcpy_s or something.
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 FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: I think I found an engine limitation
I think that it shouldn't be too high priority now, if a debriefing stage is a 2048 characters wall of text, it should be broken into stages anyway.

Yea but it's a real pain in the butt for events.  They have the same limit. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: I think I found an engine limitation
Ah, so there is a limit for amount of events in mission.
Then, it should be dealt with.

 

Offline Iss Mneur

  • 210
  • TODO:
Re: I think I found an engine limitation
Has a Mantis bug been filed for it? If so, what is its number? If not, can someone file one, with an example mission that causes the crash please?
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: I think I found an engine limitation
Ah, so there is a limit for amount of events in mission.
Then, it should be dealt with.

Correction: It's not a limitation in events, but in nodes. In other words, there is a limit as to how many lines your events can altogether take up in the mission file.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: I think I found an engine limitation
Well, that also limits the amount of events.
But limitation in nodes means that it's more strict, which is bad.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: I think I found an engine limitation
Errm, no?

Seriously, chances are you're going to have to do some pretty elaborate sexping before you hit either of those limits, and events can always be split into several parts. You just have to use them intelligently.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: I think I found an engine limitation
I exceeded the limit once in retail. Never again with FSO. Node limitation isn't a very big problem.

For reference: There are 106 events in Mystery of the Trinity. Most simply send a message using a single send-message instead of one event triggering one big send-message-list. That's a waste, but it still works!
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: I think I found an engine limitation
I exceeded the limit once in retail. Never again with FSO. Node limitation isn't a very big problem.

For reference: There are 106 events in Mystery of the Trinity. Most simply send a message using a single send-message instead of one event triggering one big send-message-list. That's a waste, but it still works!

Send-message-list can be kind of problematic. I stopped using it and switched to chained single events a while back.

I have hit the event size limit quite a few times during War in Heaven development. It can be pretty irritating at times.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: I think I found an engine limitation
I've got an event that sends 30 consecutive messages with one send-message-list. FRED didn't complain. Unless you want some happening break the chain of messages (someone dies, something arrives, player presses a button, etc.), I don't see why a lot of chained events are better than one big one.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: I think I found an engine limitation
Pretty much that. With chained events, you have much finer control over when and where messages are sent, not to mention that you can use things like is-event-true-delay on chain elements to trigger things in the mission.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

  

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: I think I found an engine limitation
I've got an event that sends 30 consecutive messages with one send-message-list. FRED didn't complain. Unless you want some happening break the chain of messages (someone dies, something arrives, player presses a button, etc.), I don't see why a lot of chained events are better than one big one.

The two big problems with send-message-list aren't the length (I've never had a problem with that) but:

1) As The_E said, it's much easier to have events during the conversation without kludgy timing.

2) Editing. My god does send-message-list render editing frustrating. You can only delete the very last string in the SEXP's data, so it's impossible to selectively prune a single message from the middle of the list.

That's why I switched. But send-message-list is a useful tool, and I'm not saying you absolutely should switch either. They both have their place, and really, it's up to the comfort of the FREDder.