Jump to content


Photo

Maximum strings length ?


23 replies to this topic

#16 Gwendolyne

Gwendolyne
  • Members
  • 187 posts
  • Gender:Male
  • Location:France

Posted 22 January 2018 - 10:22 AM

Gwendolyne, I have searched for our PM conversation with Argent77 regarding our issues with Improved Archer kit and it seems that he was able to estimate the total length of a kit description for BG2 vanilla as 4150 bytes. Hope it helps.

 

 

 

Gwendolyne, I have searched for our PM conversation with Argent77 regarding our issues with Improved Archer kit and it seems that he was able to estimate the total length of a kit description for BG2 vanilla as 4150 bytes. Hope it helps.

I am no programmer but 4096 is one of those magic numbers, right?

 

 

Thanks both, I would agree with Roxanne because the ranger new description(4111 characters) causes a CTD. We will test the 4096 limit and let you know.


CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#17 Gwendolyne

Gwendolyne
  • Members
  • 187 posts
  • Gender:Male
  • Location:France

Posted 22 January 2018 - 05:07 PM

bad news : 4096 and 4095 cause CTD. The limit is lower.


CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#18 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6554 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 22 January 2018 - 09:08 PM

bad news : 4096 and 4095 cause CTD. The limit is lower.

You are including the spaces, the wiggles and the waggels too into that count, correct ?
Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#19 Roxanne

Roxanne

    Modder

  • Modders
  • 2041 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 22 January 2018 - 10:14 PM

bad news : 4096 and 4095 cause CTD. The limit is lower.

There may be some overhead and spaces and similar that are counted as well? Maybe the reference number as well?


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*


#20 Gwendolyne

Gwendolyne
  • Members
  • 187 posts
  • Gender:Male
  • Location:France

Posted 22 January 2018 - 11:21 PM

Everything written between the two tildes. The count is given by OpenOffice or Notepad ++.


CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#21 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6554 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 23 January 2018 - 02:12 AM

You might want/need to upload a file so we can take a look. Yes, it doesn't matter that it's in French.


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#22 argent77

argent77
  • Modders
  • 780 posts
  • Gender:Male

Posted 23 January 2018 - 02:21 AM

Without knowing the exact structure of the buffer we can only find out by trial and error. Maybe the buffer includes kit name and other information as well. Tokens or line breaks may also play a role.



#23 Gwendolyne

Gwendolyne
  • Members
  • 187 posts
  • Gender:Male
  • Location:France

Posted 23 January 2018 - 03:02 AM

You might want/need to upload a file so we can take a look. Yes, it doesn't matter that it's in French.

 

done! it is a tra file renamed txt for upload purpose.

 

Without knowing the exact structure of the buffer we can only find out by trial and error. Maybe the buffer includes kit name and other information as well. Tokens or line breaks may also play a role.

 

You are right, but that is the kind of stuff every translator is reluctant to do 'cause it is very time consuming.

Attached Files


CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#24 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6554 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 23 January 2018 - 03:59 AM

First character count, for @1: 4586. That includes the first space after the ~ ...

So cut it down ...

 

for @2: 4309, too many again.

for @3: 4345...

for @4: 3000+ short enough.

for @5: 3822, short enough.

for @6: 4634...

 

For example, does the Paladin KIT DESCRIPTION require a hit point count of 1d10 said in the description. No ! Normal specialization ? No. That's not part of the KIT description, cause for me, it's part of the class. Also to be fair, this is more Demi's failing than yours.


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users