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 10-14-13, 07:57 AM   #1
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Need small help with menu editor

I'm trying to add few extra equipment slots to ingame damage menu but i struck unsolvable problem, en least for me...

By default , only 10 slots can be shown per each page in damage menu and this is controlled through GUIPlaceHolderIndex=[number from 1 to 10] defined in submarine UPCGE file. Each number biger than 10 will give instant CTD soon as mission starts...

So, i took menu editor, opened Page Subsystems/Group/Subsystems and , as expected, there were only 10 entries/controls. (Left PlaceHoledr1-5 and Right PlaceHolder1-5)



Then I copied one default entry to create new one (Test PlaceHolder1) and then I tried to set GUIPlaceHolderIndex=11
I was sure that this will work, but no...Again, soon as i load a mission, CTD...

So far i know this, the game still doesn't know that new entry with new ID is created and that's the reason for CTD. This is important because if I give to new entry an ID of some default entry, then new damage slot will appear in game but default won't...

Does anyone actually know what's going on here or where I'm making mistake?

Tnx in advance...

Last edited by vdr1981; 10-14-13 at 01:15 PM.
vdr1981 is offline   Reply With Quote
Old 10-14-13, 09:21 AM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Hi vdr1981

I cant remember every step but I did find the tutorials on this site most useful

Here is what I recorded when I added extra campaigns to the campaign selection screen

files to edit - .ini .cfg .py
http://www.subsim.com/radioroom/show...&postcount=910
http://www.subsim.com/radioroom/show...&postcount=905

__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 10-14-13, 10:54 AM   #3
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Tnx for Your help Trev, I really appreciate it...

Maybe it's useful to say that added slot/control works fine if I try to display some text, like on the picture(torpedo waiting in)...



So, ini file is OK, control is shown...But, problems start if I try to index one more damage slot with GUIPlaceHolderIndex=11...
vdr1981 is offline   Reply With Quote
Old 10-15-13, 09:15 AM   #4
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

I still don't have anything to grasp on...

I checked almost every single file which can be opened with Notepad++ just to find some dependencies, but nothing...

There's something strange also..Why is PageSubsystems.py script "empty"?

Code:
# Edited by TheDarkWraith for NewUIs_TDC_7_4_0
# Edited on 5/19/2013 @ 1730
#
# Copyright notice:
# The code changes made to this file are the intellectual property of TheDarkWraith and may not be used, modified, or duplicated in whole,
# or in part, without the express written permission of TheDarkWraith. The code changes made to this file may not be used in any commercial
# application of any form without the express written permission of TheDarkWraith.


def InitializeScript():
	pass


def StartGame():
	pass


def EndGame():
	pass


def UnloadScript():
	pass
vdr1981 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 03:24 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.