SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-09-11, 12:04 PM   #14
d3vnu11
Bosun
 
Join Date: Feb 2011
Posts: 66
Downloads: 95
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
a string buffer in Python can only hold x amount of characters. I've found a solution to this though. We define multiple AIText= entries where each AIText is a paragraph of text.
We have to also define an [AdditionalInfoEnd] header after all the AITexts.

I've also fixed the formatting problem when images are embedded into the text.
I'm not exactly sure how the Python interpreter was embedded into SH5 or what data types sh5 defines that you can access or even how much of the python api was included. But couldn't you simply extend the String Buffer class to suit your needs ? Or even define a new class to tailor it to what you are trying for ?
Regards,
Kevin
d3vnu11 is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.