SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Mod Tools, HowTo (https://www.subsim.com/radioroom/showthread.php?t=162702)

Safe-Keeper 03-17-10 07:09 PM

Problem solved, thanks for the assist.

Arclight 03-19-10 03:22 PM

Anyone tried the zone-linking in Goblin yet? Any info on what it does or how it works?

(keeps telling me "cannot link a box to itself" when I try to link a "NFlotMain" to "NEngineRoom")

Captain von Keldunk 03-20-10 07:41 AM

What version of IronPython
 
What version of IronPython is used for SH5:hmmm:
Is version 2.6 (latest stable)OK:hmmm:
Edit: hmm I think it is version 1.1.2

Junglist 03-20-10 07:56 AM

Mouse sensitivity
 
1. How to change mouse sensitivity in this game?
2. Is it possible to tweak free camera for 2--4 levels of zoom, like periscopes or UZO have 2 levels of zooming. I wand wide ange, narrow and tele, for example 10 deg tele, 45 deg narrow and 75 deg wide FOV.

Madox58 03-20-10 04:22 PM

Quote:

Originally Posted by Arclight (Post 1324221)
Anyone tried the zone-linking in Goblin yet? Any info on what it does or how it works?

(keeps telling me "cannot link a box to itself" when I try to link a "NFlotMain" to "NEngineRoom")

Each Box is linked to a 3D object.
You can't link a damage Box to a damage Box as you found out.
You can place a new box inside an old box by attaching it to the same 3D object.

java`s revenge 03-20-10 05:41 PM

I want to deepen me into modding. I want to make dutch navy ships.
Maybe this is the beginning.

Arclight 03-20-10 05:42 PM

Can't do it, either tells me that or "only boxes can be linked". Either I don't get the procedure involved, or the links aren't showing up in the box (probably the former :haha:).

Is linking nescesary for proper functioning? I created a box that encased the superstructure and made a new entry in zones.cfg for it; worked as intended, without any linking involved. :doh:

ERPP8 03-21-10 02:14 PM

oh my god, this is awesome!!!!!
I never knew how to use the mission editor!!!!!!!!!!!!

Madox58 03-21-10 03:42 PM

Some new Source Code for NWN2 was released yesterday.
It includes Source Code concerning GR2 files.
Incase your nterested here's the link.
http://nwn2forums.bioware.com/forums...forum=119&sp=0

Also.
There is an exporter for EVE that exports to obj file format.
On testing it only the first mesh is exported.
However it does come with the Source Code.
Here's the link
http://dl.eve-files.com/media/0801/evegr2toobj.2.zip
You may need to replace the older granny2.dll with the one in the SH5 folder.
Or error messages about wrong version popup.

reaper7 03-21-10 04:47 PM

New Page in Editor
 
Ok, I have been trying to create a new Page into the editor with not much luck, and need some advice.

I have created a Copy basically of the TDC page and Called it Page TDC2 in the editor as a test.
This creates the relevant ini page in the Pages Folder (Page TDC2.ini). Ok.

I then Create a new script called Page TDC2.py
And edit it like the following : (My tabs are not showing up in the scripts when I paste them into forum)

def InitializeScript():
pass
def StartGame():
pass
def EndGame():
pass
def UnloadScript():
pass

Now as I want the Periscope to bring this page up in the game I edit the Page attack periscope.py file like this:

#Page attack periscope.py
from menu import *
def InitializeScript():
Menu.PageActivated += Menu_PageActivated
Menu.PageDeactivated += Menu_PageDeactivated
def StartGame():
pass
def Menu_PageActivated( page ):
if page == Pageattackperiscope:
from PageTDC2 import PageTDC2
PageTDC2.Visible = True
def Menu_PageDeactivated( page ):
if page == Pageattackperiscope:
from PageTDC2 import PageTDC2
PageTDC2.Visible = False
def UnloadScript():
Menu.PageActivated -= Menu_PageActivated
Menu.PageDeactivated -= Menu_PageDeactivated
def EndGame():
pass

These are placed into the correct folders and the game is launched.
Game loads ok, but when I activate the periscope the game freezes with the following script error.

http://i236.photobucket.com/albums/f...TDC2-Error.jpg

Can anyone tell me what I'm doing wrong. I've no scripting experience but this appears to be the method as shown earlier in this thread.
The no module named TDC2 is baffling me, how do you create a module?:damn:

Woodybcn 03-21-10 05:48 PM

Please, I've been sailing a few days on SH5 but I haven't heard any song from the radio because I don't know how it works! Please, let me know what button I must press.

Thank you.

TheDarkWraith 03-21-10 06:33 PM

Quote:

Originally Posted by reaper7 (Post 1327179)
Ok, I have been trying to create a new Page into the editor with not much luck, and need some advice.

I have created a Copy basically of the TDC page and Called it Page TDC2 in the editor as a test.
This creates the relevant ini page in the Pages Folder (Page TDC2.ini). Ok.

I then Create a new script called Page TDC2.py
And edit it like the following : (My tabs are not showing up in the scripts when I paste them into forum)

def InitializeScript():
pass
def StartGame():
pass
def EndGame():
pass
def UnloadScript():
pass

Now as I want the Periscope to bring this page up in the game I edit the Page attack periscope.py file like this:

#Page attack periscope.py
from menu import *
def InitializeScript():
Menu.PageActivated += Menu_PageActivated
Menu.PageDeactivated += Menu_PageDeactivated
def StartGame():
pass
def Menu_PageActivated( page ):
if page == Pageattackperiscope:
from PageTDC2 import PageTDC2
PageTDC2.Visible = True
def Menu_PageDeactivated( page ):
if page == Pageattackperiscope:
from PageTDC2 import PageTDC2
PageTDC2.Visible = False
def UnloadScript():
Menu.PageActivated -= Menu_PageActivated
Menu.PageDeactivated -= Menu_PageDeactivated
def EndGame():
pass

These are placed into the correct folders and the game is launched.
Game loads ok, but when I activate the periscope the game freezes with the following script error.

http://i236.photobucket.com/albums/f...TDC2-Error.jpg

Can anyone tell me what I'm doing wrong. I've no scripting experience but this appears to be the method as shown earlier in this thread.
The no module named TDC2 is baffling me, how do you create a module?:damn:

I see what you're trying to do and it won't work. The C++ code only allows dials on pages that already had dials on them. Sure you can add a dial to Page Default Hud but when you try to tie it to the the dial in the file dials.cfg it won't work. The game will not update the dial. It will be just a static bitmap. If you want to do TDC stuff then you have to keep the dials on PageTDC or use another page that already has dials on them.

Heretic 03-21-10 07:48 PM

Hey DarkWraith, given what you've seen so far, what do you think the prospect of passing sim data to the AI scripts is? The menu stuff seemingly has all the depth, course, etc, info. There are python files that look to be an interface to the AI scripting in scripts folder. If that were possible, many cool things could be done.

TheDarkWraith 03-21-10 08:06 PM

Quote:

Originally Posted by Heretic (Post 1327375)
Hey DarkWraith, given what you've seen so far, what do you think the prospect of passing sim data to the AI scripts is? The menu stuff seemingly has all the depth, course, etc, info. There are python files that look to be an interface to the AI scripting in scripts folder. If that were possible, many cool things could be done.

if it's a python file and it's scripted should be fairly easy. I haven't looked into AI yet. Concentrating on UI. Have you researched the Script editor's included 'information'? You can see all classes and what properties, events, etc. are exposed to us. That is a gold mine :D

Arclight 03-21-10 08:46 PM

No kidding. :lol:

I don't even understand python, but I definitely see the potential there.

See if I can make a battleship surrender to my u-boat. :arrgh!:


Seriously, those tools are a godsend. That debugger gives a look under the hood, see the AI operating. Goblin is much appreciated since I don't have 3D editor, working with the .zon files would be impossible without it.

:sunny:


All times are GMT -5. The time now is 09:20 PM.

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