Log in

View Full Version : Need small help with menu editor


vdr1981
10-14-13, 07:57 AM
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)

http://s6.postimg.org/gzxs5tka9/Capture.jpg

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... :nope:

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?:doh:

Tnx in advance...:salute:

Trevally.
10-14-13, 09:21 AM
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/showpost.php?p=1860945&postcount=910
http://www.subsim.com/radioroom/showpost.php?p=1860716&postcount=905

:up:

vdr1981
10-14-13, 10:54 AM
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)...

http://s6.postimg.org/6k53jkl4h/SH5_Img_2013_10_14_17_46_19.jpg

So, ini file is OK, control is shown...But, problems start if I try to index one more damage slot with GUIPlaceHolderIndex=11...:hmmm:

vdr1981
10-15-13, 09:15 AM
I still don't have anything to grasp on...:hmmm:

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

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

# 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