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 09-12-10, 12:47 PM   #1
RdJ
Watch
 
Join Date: Sep 2010
Posts: 18
Downloads: 2
Uploads: 0
Quote:
Originally Posted by TheDarkWraith View Post
You can query the user's registry for it like I do in my UIs mod to gather all the ship's mast height data
Thanks, I got it to work

Now, I have a new issue
Code:
class MyServer(DdeServer):
 def __init__(self,service):
 base.service = service
 
def InitializeScript():
 # --- Start: Initialize DDE server --- #
 global SpeechServer
 SpeechServer = MyServer("shspeech")
 # --- End: Initialize DDE server --- #
Everytime, it says: MyServer() takes at least 2 arguments (1 given)

I've tried giving more arguments, but that doesn't work...
RdJ is offline   Reply With Quote
Old 09-14-10, 01:45 PM   #2
RdJ
Watch
 
Join Date: Sep 2010
Posts: 18
Downloads: 2
Uploads: 0
Default

Anyone?
RdJ is offline   Reply With Quote
Old 09-14-10, 03:27 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by RdJ View Post
Thanks, I got it to work

Now, I have a new issue
Code:
class MyServer(DdeServer):
 def __init__(self,service):
 base.service = service
 
def InitializeScript():
 # --- Start: Initialize DDE server --- #
 global SpeechServer
 SpeechServer = MyServer("shspeech")
 # --- End: Initialize DDE server --- #
Everytime, it says: MyServer() takes at least 2 arguments (1 given)

I've tried giving more arguments, but that doesn't work...
you're trying to call the base class the incorrect way. You should do it this way:

super( MyServer, self ).service = service
TheDarkWraith is offline   Reply With Quote
Old 09-15-10, 07:43 AM   #4
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
Default

In a mod I'm makin I use TGAs from SH3 and SH4. I convert them to DDSs using GIMP + dds plugin. In game though they don't seem to be anti-aliased enough - I think I could achieve better visual results. What should I do when converting them? Right now the set of options when converting looks like that:



I use "Bilinear" mipmap filtering, as I read in TDW's post that "Bilinear filtering" is the setting he used in his mod for graphics to be anti-aliased properly.

EDIT:
Using Photoshop in the convertion process is an option to me, if I knew the results would be better - luckily I have access to it.
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-15-10, 09:25 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

The filtering I used was declared in the .ini files. When you add new items to .ini files via menu editor it doesn't set the filtering. You have to edit the .ini files and change the values to make it use filtering.
TheDarkWraith is offline   Reply With Quote
Old 09-15-10, 09:34 AM   #6
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
The filtering I used was declared in the .ini files. When you add new items to .ini files via menu editor it doesn't set the filtering. You have to edit the .ini files and change the values to make it use filtering.
I just substitute existing game .dds files with new ones, without editing .ini files (only 1 .cfg file is edited). I also want it to stay that way for simplicity and full compatibility with any other mods - as I understand editing .ini files would greatly increase chances of incompatibility with other mods.
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-15-10, 03:53 PM   #7
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

My advice for anti-aliasing images(if it is critical), is to scale them up by factor 2 from stock, and apply a Gaussian blur factor <or= to 0.7. Then apply an unsharp filter of 0.10 or greater. All this can be done in GIMP. Plus, you will get slightly better quality if you use gamma corrected mipmaps.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 09-15-10, 04:19 PM   #8
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by SteelViking View Post
My advice for anti-aliasing images(if it is critical), is to scale them up by factor 2 from stock, and apply a Gaussian blur factor <or= to 0.7. Then apply an unsharp filter of 0.10 or greater. All this can be done in GIMP. Plus, you will get slightly better quality if you use gamma corrected mipmaps.
Thank you very much. I can't apply this procedure to the files I'm working on right now, but will save this tip for later.
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-15-10, 04:48 PM   #9
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Quote:
Originally Posted by Abd_von_Mumit View Post
Thank you very much. I can't apply this procedure to the files I'm working on right now, but will save this tip for later.
Ah, are you working on images for the UI? If so, you can still use a similar procedure. Skip the scaling(since it won't work) and do the other 3 things, using values half as big as I recommended. That should still help a pretty good deal.

Also, though you did not have it set to save the images compressed in that screen shot, it is imperative that you not save any image file with a compression unless it is gigantic. Saving with compression, no matter how high quality of a compression you use will damage/distort the image. It will do this in GIMP and in PS.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 09-17-10, 11:41 AM   #10
RdJ
Watch
 
Join Date: Sep 2010
Posts: 18
Downloads: 2
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
you're trying to call the base class the incorrect way. You should do it this way:

super( MyServer, self ).service = service
I get the same error when I do that...
RdJ is offline   Reply With Quote
Old 09-19-10, 09:59 AM   #11
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
Default

For my Map Tools mod - do map tools, which are only displayed in one, base size, need mipmaps at all? Wouldn't it be better resources-wise to get rid of mipmaps in dds files?

And IF mipmaps are not needed and safe (for every configuration - this is a must condition), do we need the map tools in dds format? Dds files are 35% bigger than identical tgas.
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-19-10, 10:07 AM   #12
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
For my Map Tools mod - do map tools, which are only displayed in one, base size, need mipmaps at all? Wouldn't it be better resources-wise to get rid of mipmaps in dds files?

And IF mipmaps are not needed and safe (for every configuration - this is a must condition), do we need the map tools in dds format? Dds files are 35% bigger than identical tgas.
mipmaps are only needed for rendering at different X,Y,Z values from camera. Since these tools are not being drawn at different distances there's no need for mipmaps. Game can use TGA or DDS format.
TheDarkWraith is offline   Reply With Quote
Old 09-19-10, 10:50 AM   #13
SteelViking
The Old Man
 
Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
Default

Quote:
Originally Posted by Abd_von_Mumit View Post
For my Map Tools mod - do map tools, which are only displayed in one, base size, need mipmaps at all? Wouldn't it be better resources-wise to get rid of mipmaps in dds files?

And IF mipmaps are not needed and safe (for every configuration - this is a must condition), do we need the map tools in dds format? Dds files are 35% bigger than identical tgas.
Quote:
Originally Posted by TheDarkWraith View Post
mipmaps are only needed for rendering at different X,Y,Z values from camera. Since these tools are not being drawn at different distances there's no need for mipmaps. Game can use TGA or DDS format.
Exactly like TDW said. When I told you that gamma corrected mipmaps would help out quality a bit, I did not realize that you were working on images for the UI.
__________________

He sank 198,650 tons....who you ask?....Erich Topp, that's who!
SteelViking is offline   Reply With Quote
Old 09-19-10, 12:22 PM   #14
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
Default

Quote:
Originally Posted by TheDarkWraith View Post
mipmaps are only needed for rendering at different X,Y,Z values from camera. Since these tools are not being drawn at different distances there's no need for mipmaps. Game can use TGA or DDS format.
Much appreciated. Thank you!
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Old 09-20-10, 03:47 PM   #15
Abd_von_Mumit
The Old Man
 
Join Date: Jan 2007
Location: Warszawa, Polska
Posts: 1,452
Downloads: 46
Uploads: 4
Default

With every tiny mod I make my appetite for more serious modding grows. I hope to find a cure soon, as this actually keeps me out of game , but got a question:

Is it possible (makeable) to have a draggable tool consisting of 3 elements overlapping each other (half-transparent), where one is fixed (is a "base" of the tool) and the 2 others move freely to sides (in 1 axis only, horizontal), where freely means when dragged with mouse coursor (part #2 moves independently of part #3)?
__________________
Long, hard, wet and full of seamen. My precious.
SH3+GWX+OLC — sunk x4, retired x2; SH5+TDW — still exploring
My SH5 mods: EQuaTool - Elite Quality Map Tools, Patrol Routine Scripts, No Logo Intro Menu_Animation, Less Annoying Stopwatch
Links: SH5 mods I use, FileFront, Manual plotting how-to
Abd_von_Mumit is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 10:14 PM.


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