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

Reply
 
Thread Tools Display Modes
Old 03-07-11, 05:45 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

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.
TheDarkWraith is offline   Reply With Quote
Old 03-07-11, 05:52 PM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


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.
Good news TDW
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 03-08-11, 03:04 AM   #3
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Forgot to mention that the <b> tag is not working. I can see the tag in SOAN displayed as normal text.
Zedi is offline   Reply With Quote
Old 03-08-11, 08:00 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Magnum View Post
Forgot to mention that the <b> tag is not working. I can see the tag in SOAN displayed as normal text.
that's correct. Until I release the next test version it will.
TheDarkWraith is offline   Reply With Quote
Old 03-08-11, 10:42 AM   #5
elanaiba
Ace of the Deep
 
Join Date: Mar 2005
Location: Bucharest, Romania
Posts: 1,058
Downloads: 3
Uploads: 3
Default

Maybe actual scans from german recognition manuals could be included, where available?
__________________
With strength I burn...

elanaiba is offline   Reply With Quote
Old 03-08-11, 12:01 PM   #6
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Is the next step I wanna make, but so far I found no valid link to something like this. All available scans are sold for money. Found some cool drawings for merchants but they are copyrighted.



Another thing I had in mind was to add those height lines in background of every ship, as it was in the older recon manuals, but not sure if is any use doing that.
Zedi is offline   Reply With Quote
Old 03-09-11, 11:37 AM   #7
Sailor Steve
Eternal Patrol
 
Sailor Steve's Avatar
 
Join Date: Nov 2002
Location: High in the mountains of Utah
Posts: 50,369
Downloads: 745
Uploads: 249


Default

Quote:
Originally Posted by Magnum
Just gathering data about the C1-B class is a major pita.
What do you have so far? I don't have a lot of information either, but I do have this link:
http://www.usmm.org/c1ships.html

My work with ship names in SH3 has taken me in a different direction, gathering information on individual names rather than classes. It drives me crazy that they can make so many improvements, yet manage to break things that worked before. I have a huge amount of information collected on individual merchant ships - tonnage, dates, type - just waiting to be applied to SH5, once the ships are there.
__________________
“Never do anything you can't take back.”
—Rocky Russo
Sailor Steve is offline   Reply With Quote
Old 03-09-11, 12:04 PM   #8
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
Old 03-09-11, 02:35 PM   #9
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Update for the AIT files:-

[AdditionalInfo]
AIText=The <b>Liberty</b> ships etc
[AdditionalInfoEnd]

This will now show as this:-

The Liberty ships etc

commands are still:-

| = new line "return"
| | = new para
AIT= =start new para with text limit reset.

do not use ";" in your text
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 03-09-11, 03:25 PM   #10
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
Update for the AIT files:-

[AdditionalInfo]
AIText=The <b>Liberty</b> ships etc
[AdditionalInfoEnd]

This will now show as this:-

The Liberty ships etc

commands are still:-

| = new line "return"
| | = new para
AIT= =start new para with text limit reset.

do not use ";" in your text
not AIT= but rather AIText=
Every new AIText= defines a new paragraph of text
A leading ; on a line is a comment and will be ignored. This can be used to insert comments into your .ait file.
TheDarkWraith is offline   Reply With Quote
Reply


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 12:52 AM.


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.