SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Need programming help (https://www.subsim.com/radioroom/showthread.php?t=140796)

irish1958 08-14-08 06:34 PM

Need programming help
 
An unfinished portion of SH3 is the function of the medic. As Most of you know, he has no function and just sits around with his thumb up--you know where.:up:
Also on long patrols, there are no illnesses, no accidents, no disabled or injured seamen. Most unrealistic. :x
Well, there is a fairly easy way to develop scenarios that make the medic indispensable, and randomly introduce an unlimited number or unexpected accidents, illnesses, deaths, and disabilities both treatable by the medic and permanent until the end of the patrol. It also allows the use of battlefield promotions and the awarding of injury medals neither of which is now possible. It also makes it possible for any SHIII Kaleun to develop and share his own scenarios.
I have no programming skills :damn: and cannot implement these improvements in the game, but I think the program necessary is relatively simple and requires only changing two files. If anyone can help, please contact me so we can work together to improve this wonderful game. :sunny:

wdq4587 08-14-08 08:09 PM

Unless you can get the game source code, I guess there are no way to add these to the existing game. And I guess most player will not have interesting on that. They need forcus on other more important things.

Friction150 08-14-08 09:58 PM

Quote:

Originally Posted by wdq4587
Unless you can get the game source code, I guess there are no way to add these to the existing game. And I guess most player will not have interesting on that. They need forcus on other more important things.

Quite the opposite mate. Most (not all) people here are all for realism. I too, have wondered why there were medics in the game when they have no use. I always thought that maybe people would get hurt in strafing runs, but the screen just gets blurry. Then you get hit with a bomb and they all die instantly... there's no medium there. But I do agree that it would involve a heap of work with coding and scripting to work.

wdq4587 08-15-08 04:18 AM

Simply said about realism, there are many aspect you may want add. I think my idea to let the crew have more beard when they patrol long time is cool. But that can not be first list.

And about the medic, I agree you that's the unfinished part of the game. But in fact you can not hope medic can do much in such a little boat in such a big ocean. (I know many people have more confidence on medic in real life than me). And I disagree you with accident not by enemy and illnesses, caption can do nothing with that. Add such things will let the player fell discouragement. (Or you hope the caption decide return to base because one crew illnesses very bad?)

But this discussion is meaning less. As a programmer I can simply tell you is it seems no way to do that unless the developer open they source (may be 10 years later). Just like my beard idea. I don't know does SH3 has script or not (I mean executeable script), but the medic mostly like program in hard code layer.

h.sie 08-15-08 04:54 AM

somewhere (i do not know where) i read, that the fatigue of those crew members, which are in the same room with the medic, reduces faster than crew members, which are not in the same room. but i have not tested that.......

GlobalExplorer 08-15-08 06:54 AM

Quote:

Originally Posted by wdq4587
But this discussion is meaning less. As a programmer I can simply tell you is it seems no way to do that unless the developer open they source (may be 10 years later). Just like my beard idea. I don't know does SH3 has script or not (I mean executeable script), but the medic mostly like program in hard code layer.

Shut up if you don't know what you're talking about. I have discussed this with irish1958 and the concept seems completely doable if you have an application to modify the crew_config files. My recommendation was to leave it because of complexity and my previous experience with savegame modding, but not because it requires the source code.

irish1958 08-15-08 07:32 AM

Disability Mod
 
Quote:

Originally Posted by GlobalExplorer
Quote:

Originally Posted by wdq4587
But this discussion is meaning less. As a programmer I can simply tell you is it seems no way to do that unless the developer open they source (may be 10 years later). Just like my beard idea. I don't know does SH3 has script or not (I mean executeable script), but the medic mostly like program in hard code layer.

Shut up if you don't know what you're talking about. I have discussed this with irish1958 and the concept seems completely doable if you have an application to modify the crew_config files. My recommendation was to leave it because of complexity and my previous experience with savegame modding, but not because it requires the source code.

I agree. SH3CMDR writes to these files, and they appear in the game. Also, when I write to these files manually, the changes appear in the game and act as I have said. The en_menu file (or fr_menu or de_menu) must also be changed. Again, when I write to this file manually, the changes appear in the game. Unfortunately, SH3CMDR has ceased development and is no longer offered or supported. Perhaps if someone knows the workings of CMDR, it can be added as a mod to this. The ideal way for the mod to function would be to be as an add-on to SH3CMDR so it would load when the game does. Alternately, it could be activated by adding it to the Ubisoft\SilentHunterIII\ folder in the same way that SH3Weather is added.

With no programming skills or knowledge, I cannot go forward with this concept.

This is the SilentHunterIII Mod workshop. The purpose of this forum is to develop mods for SHIII, which is why I have broached this idea. iF it can't be done, so be it.

GlobalExplorer 08-15-08 08:04 AM

I am afraid that's the problem, it can be done but it requires programming skills. With no one in sight that is going to do that atm you could lay out your idea in the forum and see whether someone takes it up.

I have thought about whether it could be incorporated into Sh3Gen - and it could - but would be fiendishly complex to use and, since I have finished with this mod, I really don't think I will ever consider major updates like this.

It's still a great idea, but not so much if it stands on it's own. Have you ever thought about combining it with technical faults on the submarine?

Pisces 08-15-08 09:49 AM

Quote:

Originally Posted by h.sie
somewhere (i do not know where) i read, that the fatigue of those crew members, which are in the same room with the medic, reduces faster than crew members, which are not in the same room. but i have not tested that.......

In GWX (2.1) manual, top of page 81. He's not useless. But that depends on the fatigue model you are playing with, and the amount of crew you have.

irish1958 08-15-08 10:50 AM

GlobalExplorer wrote

It's still a great idea, but not so much if it stands on it's own. Have you ever thought about combining it with technical faults on the submarine?[/quote]

Yes, but the problem is that the disability would show up in the game without any explanation as to what is has happened. For this you need to read the en_menu file and write the explanation in the information box in the game.

irish1958 08-15-08 10:55 AM

Quote:

Originally Posted by Pisces
Quote:

Originally Posted by h.sie
somewhere (i do not know where) i read, that the fatigue of those crew members, which are in the same room with the medic, reduces faster than crew members, which are not in the same room. but i have not tested that.......

In GWX (2.1) manual, top of page 81. He's not useless. But that depends on the fatigue model you are playing with, and the amount of crew you have.

That is true. In my tests I have found that the fatigue will resolve about twice as fast with the medic present. The same is true for the morale problem in the NYGM Mod. However, in game play with various fatigue models, I have found this to be not significant (for my style of play).

bracer 08-15-08 11:02 AM

I know some basic programming, I'll try and see if it's something I could manage.
I'll PM you if I get any succes.
Sounds like a great idea!
/Bracer

GlobalExplorer 08-15-08 11:46 AM

Quote:

Originally Posted by irish1958
Yes, but the problem is that the disability would show up in the game without any explanation as to what is has happened. For this you need to read the en_menu file and write the explanation in the information box in the game.

It could also be made to appear in the war diary (.clg file in savegame).

irish1958 08-15-08 02:29 PM

Quote:

Originally Posted by GlobalExplorer
Quote:

Originally Posted by irish1958
Yes, but the problem is that the disability would show up in the game without any explanation as to what is has happened. For this you need to read the en_menu file and write the explanation in the information box in the game.

It could also be made to appear in the war diary (.clg file in savegame).

Thanks, I'll check into it and see if it works.

Bracer wrote: " I know some basic programming, I'll try and see if it's something I could manage.
I'll PM you if I get any succes.
Sounds like a great idea!
/Bracer"
Thanks

Friction150 08-15-08 02:50 PM

Quote:

Originally Posted by GlobalExplorer
Quote:

Originally Posted by wdq4587
But this discussion is meaning less. As a programmer I can simply tell you is it seems no way to do that unless the developer open they source (may be 10 years later). Just like my beard idea. I don't know does SH3 has script or not (I mean executeable script), but the medic mostly like program in hard code layer.

Shut up if you don't know what you're talking about. I have discussed this with irish1958 and the concept seems completely doable if you have an application to modify the crew_config files. My recommendation was to leave it because of complexity and my previous experience with savegame modding, but not because it requires the source code.

WDQ4587- Regardless if you are a programmer, it doesn't mean you know every program that's out there. I've written programs before, but I will fully admit that I don't know very much about SH3 programming. This conversation is not meaningless. I've seen many "meaningless" conversations and "dumb" ideas turn into gold on here.

I agree with GlobalExplorer. It could be done, the question is: Is it worth the time invested into it to do it. You would have to test alot of unseen aspects of the game, and you would have bugs to fix. It could possibly be done with crew config files, just like fatigue is. Just my 2 cents. I hate hearing that things can't be done without someone at least trying.

wdq4587 08-15-08 07:23 PM

Really interesting reply. Speak loud dos not mean you got the truth. I know that medic is not total useless in game, but what you can change (I mean all the modder can change) is only under the game developer programming frame. That sometimes really let the addon maker fell discouragement.

Just tell me what you thinking you can do with medic and the distance between what you can do with the irish1958's hope? Does there are any possibility to implement "unexpected accidents, illnesses, deaths, and disabilities"?

And if anyone know there are executeable script (I mean support if else for while) in sh3, please tell me where I can found it. I will check it. Simply said without a running able script or program language code. You can not program. Whether you thinking what you doing are how near the program.

If you want change the crew_config files, you don't need program skill, you just need take too much time to change it and see what happen. Although the program skill will help and let you know where is the limit, because the programmer can guess what other programmer (I mean game developer) thinking. I really see some addon maker have do something I said impossible in other game. But that's not the way I am thinking, it just looks like it works, but in fact not the really function we expected.

Friction150 08-15-08 08:33 PM

Quote:

Originally Posted by wdq4587
Really interesting reply. Speak loud dos not mean you got the truth. I know that medic is not total useless in game, but what you can change (I mean all the modder can change) is only under the game developer programming frame. That sometimes really let the addon maker fell discouragement.

Just tell me what you thinking you can do with medic and the distance between what you can do with the irish1958's hope? Does there are any possibility to implement "unexpected accidents, illnesses, deaths, and disabilities"?

And if anyone know there are executeable script (I mean support if else for while) in sh3, please tell me where I can found it. I will check it. Simply said without a running able script or program language code. You can not program. Whether you thinking what you doing are how near the program.

If you want change the crew_config files, you don't need program skill, you just need take too much time to change it and see what happen. Although the program skill will help and let you know where is the limit, because the programmer can guess what other programmer (I mean game developer) thinking. I really see some addon maker have do something I said impossible in other game. But that's not the way I am thinking, it just looks like it works, but in fact not the really function we expected.

:nope:
Speak loud? I wasn't speaking loud, I wasn't speaking at all actually. I'm typing. I never said I knew the truth, in fact, in my last post, did I not say "I've written programs before, but I will fully admit that I don't know very much about SH3 programming."

Secondly, As I said, just about every aspect of this game has been changed before in one way or another. You were the one to announce that it couldn't be done, and if it could, it wasn't worth it. You are also the one that said this conversation is pointless. This might sound ignorant, but it's the truth: If you have nothing positive to say, why post? 99.99% of the guys on here that mod and try to mod do so as a hobby. None of them are getting paid for it. We're all here helping each other, or at the very least, offering support. So that's the choices: Help it, Support it, Or leave it alone.

Also, every game has scripting, even if it is small. This game has scripts as well. What controls what happens when torpedos hit? Or when a ship takes on to much water? Those figures are scripts in the sense that they control what goes on in a game. It's not the real world, so everything needs to be programmed to run correctly. Any program that doesn't have these figures is an empty shell, and will not function.

Sorry guys (modders and friends), people like this make me mad. They jump in an nail people for ideas and then they are the first people to b**** when nothing new comes out, or there is a problem with a mod...

wdq4587 08-16-08 03:19 AM

Don't be mad. Don't say impossible is nothing. And don't say "every aspect of this game has been changed". There are many aspect I want to change that can not be change. I want the sea graphics in SH4. I want the measure distance method in SH4 (show 2 image at same time). I want can not hear the sound from another ship in sonar if there are land between my u-boat and that ship. I want I can control pump how much water. But I know there are no way to get these in SH3.

I just make a littel mod patch to against one program flaw on TDC auto update. If I can touch the game source code, I only need change about 10 to 30 lines. But the fact is I took much time to struggle with that flaw. And the solution is not perfect. Although I am glad to think it's acceptable and helpful.

And about script. Some game do have running able script (I mean in fact a program language like Lua). But these config files you called script are not really script. They are in fact data file. The program read these as parameters to decide what to do. So you can change do how much, or even not to do, but you can not let program do some new thing that not designed to do.

As I said above sometimes someone can let other people think they did it! But only 2 possibility: one is just look like, one is someone luck to found the programmer disabled part (mostly unfinished and with bugs). There are another possibility is that someone is a hacker, then he can really do that, he can change the program behavior. But I am not a hacker, you are not a hacker, 99.9% mod or addon maker are not a hacker. That's the fact, and welcome to real world.

GlobalExplorer 08-16-08 06:42 AM

wdq4587 I understand what you have in mind actually, and I also take no liberties in telling people of their mod idea is just wishful thinking. But you obviously don't know enough about the SHIII framework. A lot of things can be made appear in the game by changing data files, especially save game files and they appear after reloading. All that's needed is an external program that makes these changes and hence the need for a programmer to step in. Mind that this concept requires certain procedures on the part of the user which I called fiendishly complex.

You are right that SHIII is data driven and no script exists as far as I know.

But no need to start an argument over this mates, all that irish1958 wanted was finding some support with his mod.

Friction150 08-16-08 12:31 PM

Quote:

Originally Posted by wdq4587
Don't be mad. Don't say impossible is nothing. And don't say "every aspect of this game has been changed". There are many aspect I want to change that can not be change. I want the sea graphics in SH4. I want the measure distance method in SH4 (show 2 image at same time). I want can not hear the sound from another ship in sonar if there are land between my u-boat and that ship. I want I can control pump how much water. But I know there are no way to get these in SH3.

I just make a littel mod patch to against one program flaw on TDC auto update. If I can touch the game source code, I only need change about 10 to 30 lines. But the fact is I took much time to struggle with that flaw. And the solution is not perfect. Although I am glad to think it's acceptable and helpful.

And about script. Some game do have running able script (I mean in fact a program language like Lua). But these config files you called script are not really script. They are in fact data file. The program read these as parameters to decide what to do. So you can change do how much, or even not to do, but you can not let program do some new thing that not designed to do.

As I said above sometimes someone can let other people think they did it! But only 2 possibility: one is just look like, one is someone luck to found the programmer disabled part (mostly unfinished and with bugs). There are another possibility is that someone is a hacker, then he can really do that, he can change the program behavior. But I am not a hacker, you are not a hacker, 99.9% mod or addon maker are not a hacker. That's the fact, and welcome to real world.

WDQ4587: Seriously mate, you need to slow down, take a breathe and re-read my post. You have been misquoting me this entire conversation, twisting my words to try to use them against me. I really don't appreciate that. I did not say that every aspect of the game has been changed. I said "just about every aspect of this game has been changed before in one way or another." There's a difference there mate. I know there are things about the game that haven't been changed, but just about everything that anyone would want changed has been. The dat and cfg files aren't scripts, but act just like them to control the in game world. I still firmly believe that there are scripts in the game, even if they are hard coded. It would be hard to make a complex game without some sort of scripting to it.

And you're right, I'm not a hacker. That's not really needed for this game though, as it has the best support I've ever seen for a game from it's modding community. It appears that I am talking to a machine translator, because something is getting lost in translation here. :nope:

GlobalExplorer: I know that mate, and I wasn't trying to have an argument here. I always try to lend a hand where needed, I just needed to clear up this mess. I'll leave this thread alone unless something else needs to be said.


All times are GMT -5. The time now is 11:46 AM.

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.