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)
-   -   [REL] Multiple UIs for SH5 with TDC (https://www.subsim.com/radioroom/showthread.php?t=166093)

HUNterkarabiner 02-12-11 12:23 PM

hi!
Torpedo door opening problem is the proposal?:cry: I have not noticed, maybe?:-?

TheDarkWraith 02-12-11 12:27 PM

Quote:

Originally Posted by panosrxo (Post 1596126)
Plus it is going to be faster right?

Would it be possible to convert the whole game? Eliminate python? (Thats just a theoretical question)

well I'm going to convert as much of the code I wrote as possible into .dlls so that 1) game loads faster and 2) no one can copy it :up:

Finally my ideas will be safe and I won't have to worry about others 'stealing' it :yep: This last point is especially important with the new finds I made!

Successfully subscribed to game events in C# code now :rock: Wow, this is whole new world opening up.....

TheDarkWraith 02-12-11 12:38 PM

so here's something I've done that is pretty cool:

I took the high precision timer code that I wrote in Python, converted it to C#, subscribed to the game's TimeCompressionChanged event (so that the high precision timer can update itself with the current TC level) in the C# code (:rock:), had the high precision timer start a new thread to continuously update itself at 10ms intervals (so that I don't have to rely on the game's Animation timer which is very unstable).....result: a completely autonomous high precision timer completely independent from the game now :D THIS ROCKS! :yeah:

SOAN has been converted to a .dll
The radio messages feature is being converted to a .dll to protect new features I'm adding to it at a later date
I made a new .dll that encloses all my file utils for the game
I made a new .dll that encloses all my utils for the game
I made a new .dll that allows new sounds to be added to the game without registering with Sh.sdl (TDWSound.dll)
I made a new .dll that allows the capturing of mouse parameters (buttons pushed, scroll wheel moved, mouse position, etc.) (TDWMouse.dll)

Things are starting to get really interesting now......

panosrxo 02-12-11 12:46 PM

You are creating a whole new game. You should consider a career in game development.:salute:

Paris_England 02-12-11 12:50 PM

This is truly amazing! Fantastic work :) Thanks!

TheDarkWraith 02-12-11 12:52 PM

Quote:

Originally Posted by panosrxo (Post 1596369)
You are creating a whole new game. You should consider a career in game development.:salute:

I've though about it but I like what I do now for a living. This 'game stuff' is just a hobby to kill idle time :DL

The one problem I don't like with Python is that you can't protect your code. Anything you write is visible to anyone which is not good. Python has the ability to compile .py files into .pyc and .dll but the game won't recognise them. So I had to find an alternate route and I finally did. Now I don't have to worry about others stealing/using my work anymore :up:

stoianm 02-12-11 12:56 PM

So you are doing 2 things in the same time: protect your work and make game faster and opend for new interesting improvements?

panosrxo 02-12-11 01:03 PM

Quote:

Originally Posted by TheDarkWraith (Post 1596376)
I've though about it but I like what I do now for a living. This 'game stuff' is just a hobby to kill idle time :DL

The one problem I don't like with Python is that you can't protect your code. Anything you write is visible to anyone which is not good. Python has the ability to compile .py files into .pyc and .dll but the game won't recognise them. So I had to find an alternate route and I finally did. Now I don't have to worry about others stealing/using my work anymore :up:

I have to agree with you about python and code protection. The good thing is that you have something to start with. Python made modding easier!

One more thing. SH5 uses a version of IronPython. There have been updates to the sdk. Those updates include increases in speed. (http://ironpython.net/) Would it be possible to update the game?? (ironmath, and other python dll?)

Silent Steel 02-12-11 01:24 PM

Mayday!
 
Hi mates
Up to now SH5 has thanks to TDW just become more and more immersive and running better and better but now I've run into something strange.

As soon as I order "scope depth", or any other depth, I get:

"Runtime Error"
"This application has requested the Runtime to terminate it in an unusual way"

That's all it says.

I have updated Java and I have run every available anti-virus software I have but nothing was to be found there...

Maybe it isn't related to SH5 but something completely different.

I'm currently running NewUIs_TDC_6_3_7_ByTheDarkWraith
OS Windows7 64 bits

Has anyone of you an idea why this happens and maybe a suggestion what to do?

:wah:

//

naights 02-12-11 01:54 PM

TDW = SHV GOD

TheDarkWraith 02-12-11 03:08 PM

Quote:

Originally Posted by panosrxo (Post 1596386)
One more thing. SH5 uses a version of IronPython. There have been updates to the sdk. Those updates include increases in speed. (http://ironpython.net/) Would it be possible to update the game?? (ironmath, and other python dll?)

Have no idea. Sounds like you need to give a try and see what happens :up: The only way you discover new things is by saying what if I try this.....:yep:

marleymen 02-12-11 03:14 PM

Quote:

Originally Posted by TheDarkWraith (Post 1596362)
so here's something I've done that is pretty cool:

I took the high precision timer code that I wrote in Python, converted it to C#, subscribed to the game's TimeCompressionChanged event (so that the high precision timer can update itself with the current TC level) in the C# code (:rock:), had the high precision timer start a new thread to continuously update itself at 10ms intervals (so that I don't have to rely on the game's Animation timer which is very unstable).....result: a completely autonomous high precision timer completely independent from the game now :D THIS ROCKS! :yeah:

SOAN has been converted to a .dll
The radio messages feature is being converted to a .dll to protect new features I'm adding to it at a later date
I made a new .dll that encloses all my file utils for the game
I made a new .dll that encloses all my utils for the game
I made a new .dll that allows new sounds to be added to the game without registering with Sh.sdl (TDWSound.dll)
I made a new .dll that allows the capturing of mouse parameters (buttons pushed, scroll wheel moved, mouse position, etc.) (TDWMouse.dll)

Things are starting to get really interesting now......

I have 1 question. About that .dll that allows new sounds to be added, Can someone that it´s not you (because noone can see the .dll code) add new sounds easily?

I say because of this MOD: Stormy´s DBSM Collection.

If no one but you can add more sounds to the game you should work togheter with Stormfly to add (battlestations, radiosounds, etc)

Thanks and sorry for my bad english TDW, maybe my grammar is very bad and doesn´t understand anything.

stoianm 02-12-11 03:20 PM

more precise bearing indicator
 
Hi tdw,

can you add in yours UIs to have 1 degree scope bearing - i saw that somewhere on the sh4 forum

thanks!:salute:

TheDarkWraith 02-12-11 04:06 PM

Quote:

Originally Posted by marleymen (Post 1596445)
I have 1 question. About that .dll that allows new sounds to be added, Can someone that it´s not you (because noone can see the .dll code) add new sounds easily?

I say because of this MOD: Stormy´s DBSM Collection.

If no one but you can add more sounds to the game you should work togheter with Stormfly to add (battlestations, radiosounds, etc)

Thanks and sorry for my bad english TDW, maybe my grammar is very bad and doesn´t understand anything.

Ask Stormfly how easy it is to add new sounds....he has a copy of the new version (as of now) for testing :yep:

TheDarkWraith 02-12-11 04:07 PM

Quote:

Originally Posted by stoianm (Post 1596448)
Hi tdw,

can you add in yours UIs to have 1 degree scope bearing - i saw that somewhere on the sh4 forum

thanks!:salute:

don't understand :06:


All times are GMT -5. The time now is 03:29 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.