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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-24-08, 03:07 PM   #1
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
An idea of ridiculous proportions

Looking at all the content that has been created for this game since its release, I think the modding community is reaching a milestone. Much of what the game is lacking has been added, and a fairly solid foundation of MOD's have been produced on top of which further MOD's have been created.

After reading much about current file editors and utilities, I have the insane idea that it would be very awesome if they could all be merged into one SDK of sorts. There seems to be a person for every file that needs editing, as well as a very cool mod enabler that performs beautifully.


This program would have the following features:
  • File Creation
    • Entirely new files added via copy
  • File Deletion
    • Move files to 'deleted' folder to remove them from game folder
  • File Editing
    • Change only variables, not replacing files
    • Complete collection of knowledge gathered so far on SH3 file types/structures
    • Manual and Automatic editing
    • GUI for all file types/structures
    • Script files for one click file changes
      • MODs enbaled via script
      • Simple straight forward language
      • Automatic script creation via file and variable comparison
  • Compatibility
    • Nearly complete compatibility between MODs
    • Only MODs that edit the same variables would be incompatible, and then only if the new value breaks other features
  • Modules
    • Give additional advanced features such as prelaunch game data altering (ala SH3Commander, SH3Gen)
    • Created and installed seperatly to conserve download size and HDD space
    • Allow program to expand and extend as time moves on
    • Simple import of module would add new functionality without lots of "How do I do this again?"
  • Windows integration
    • File types from SDK entered into Widnows registry
    • Downloaded mods and modules would open and install themselves automatically, ready for enabling
    • Double clicking a mod file would open the SDK and perform default actions
  • Verify Function
    • MOD could be verified by running a comparison check of all files and variables edited by MOD
    • Broken installs would only occur if base files were damaged or corrupted or 3rd party wrote bad script
  • Standards
    • All MODs would have the same information available
      • Name
      • Description
      • Features
      • Gameplay changes
      • Author
      • Link to homepage
      • Instructions for use (install notes not required)
      • Contact link (if desired)
      • etc
    • Validation of usability
      • SDK could check with internet site for list of MODs known to work well
      • End user could tell which are 'garanteed' to work
      • End user could tell which are experimientalCentral Filing
    • SDK could check with internet site for list of available MODs
    • End user could find common mods added to library easily
    • Internet site could reference MOD's external download link rather than host all files on site
  • One Stop Shop
    • Replaces all current tools and ulilities
In laymen's terms:
  • End User Features
    • Change any data in the game files we currently know how to edit
    • Enable/Disable mods without worrying about compatibility
    • Add mods simply by downloading from list given in program
    • Only use one program for all features offered by current tools
    • Broken installs could possibly be repaired with click of a button
Several things would be required:
  • Cooperation between the different parties with such abounding knowledge
  • TONS of time
  • Willingness and desire of current and future MOD developers to make use of the features of such a program
  • Extensive support by more than one person and sharing of the source code between developers
  • More items I can't think of at the moment
The real question is: Does anyone even want this thing?

Yes, I have written insane stuff like this before. Please post your comments or ideas on such an endevour here.

I will not hear anything to the effect of "It can't be done!!" If you feel that way about a certain portion of the project, please calmly explain why. I can garantee that this thing is doable if one puts the work required into it.

[Edited 10/24/08 for better clarity of idea]

Last edited by Commander Gizmo; 10-24-08 at 10:06 PM.
Commander Gizmo is offline   Reply With Quote
Old 10-24-08, 07:52 PM   #2
richardphat
Seasoned Skipper
 
Join Date: Apr 2008
Location: Canada
Posts: 682
Downloads: 17
Uploads: 0
Default

Question first..... are you trying to have a software which allows you for example to edit deck gun/move/remove, having lifeboat syle, terrain editor and other function?
richardphat is offline   Reply With Quote
Old 10-24-08, 09:16 PM   #3
Philipp_Thomsen
Old Gang
 
Philipp_Thomsen's Avatar
 
Join Date: Nov 2007
Location: Drunk at the whorehouse
Posts: 2,261
Downloads: 146
Uploads: 0


Default

I think that is more like a mod-enabler that could make mods compatible, by merging files.

If so, great idea!
__________________
To each his own
Philipp_Thomsen is offline   Reply With Quote
Old 10-24-08, 09:19 PM   #4
richardphat
Seasoned Skipper
 
Join Date: Apr 2008
Location: Canada
Posts: 682
Downloads: 17
Uploads: 0
Default

Ahhh ok! Wasnt sure about what he is talking about! Hmmm go for it!
richardphat is offline   Reply With Quote
Old 10-24-08, 09:30 PM   #5
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
Default

I will edit the OP to make it more understandable as soon as I can think how.

[EDIT: It has been updated]

Last edited by Commander Gizmo; 10-24-08 at 10:44 PM.
Commander Gizmo is offline   Reply With Quote
Old 10-24-08, 10:18 PM   #6
richardphat
Seasoned Skipper
 
Join Date: Apr 2008
Location: Canada
Posts: 682
Downloads: 17
Uploads: 0
Default

Quote:
Originally Posted by Commander Gizmo
I will edit the OP to make it more understandable as soon as I can think how.
Hmm dont think you will need it. Im the only one here who got trouble with english.
richardphat is offline   Reply With Quote
Old 10-25-08, 04:55 AM   #7
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by Commander Gizmo
One Stop Shop
    • Replaces all current tools and ulilities
...
    • Only use one program for all features offered by current tools
So you intend completely re-writing/re-developing SH3Gen, SH3Cmdr, JSGME, S3DEditor, JTxE, SH4MenuMaker, the Terrain Editor and many other tools that collectively have taken over 10 years to develop in various languages (let alone .NET or Win32) and in some instances by very experienced developers, into one "super application" covering both SH3 and SH4? What's your anticipated implementation date? I mean, have you considered that by the time you're ready to release such a beast, people may not only have moved on from SH3, but they may even have started moving on to SH5?

Not wanting to diss your idea, but I hope you've added a healthy dose of "reality check" to your feasibility analysis and planning. Either that or you don't mind working 30 hour days.

My suggestion to you would be to consider eating the elephant in little bites rather than trying to swallow it whole. To that end, why don't you just focus on SH4? Much greater return on investment with it, as there's many little applications that would benefit from integration. Perhaps chip into the "SH4 Skipper" development thread and offer your services? Frankly, I think the time you'd be spending on incorporating SH3 into your "one stop shop" would be much more fruitful spent focussing exclusively on SH4.

Anyway, best of luck.

PS: I encourage you to trawl the archives - your idea is not new and the fact that after near four years nothing like this exists suggests the challenges that you will be facing. Unfortunately, all the "go for it" responses in the world do not equate to the number of people who, when push comes to shove, stick up their hand to help you.
JScones is offline   Reply With Quote
Old 10-26-08, 12:49 PM   #8
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
Default

Quote:
Originally Posted by jscones
So you intend completely re-writing/re-developing SH3Gen, SH3Cmdr, JSGME, S3DEditor, JTxE, SH4MenuMaker, the Terrain Editor and many other tools that collectively have taken over 10 years to develop in various languages (let alone .NET or Win32) and in some instances by very experienced developers, into one "super application" covering both SH3 and SH4? What's your anticipated implementation date? I mean, have you considered that by the time you're ready to release such a beast, people may not only have moved on from SH3, but they may even have started moving on to SH5?
I wasn't thinking of reinventing the wheel, more just standardizing the models. If the folks that have the knowledge on each file type in SH3 where to get together with me, I believe that it would not be that hard to port their parser, or to build a new one on the current knowledge. This doesn't entail relearning everything from scratch. This is the reason for the requirement for 'cooperation between the different parties with such abounding knowledge'.

Quote:
Originally Posted by jscones
Not wanting to diss your idea, but I hope you've added a healthy dose of "reality check" to your feasibility analysis and planning. Either that or you don't mind working 30 hour days.
I actually program for relaxation. I'm just wierd that way. I can devote some time to this project.

Quote:
Originally Posted by jscones
My suggestion to you would be to consider eating the elephant in little bites rather than trying to swallow it whole. To that end, why don't you just focus on SH4? Much greater return on investment with it, as there's many little applications that would benefit from integration. Perhaps chip into the "SH4 Skipper" development thread and offer your services? Frankly, I think the time you'd be spending on incorporating SH3 into your "one stop shop" would be much more fruitful spent focussing exclusively on SH4.
I believe that such a project would be able to edit both game files without much modification. In fact, what I am really suggesting is building the engine for such a tool, not the content. One could then add in parsing modules and scripts to edit anything they desired. As I understand it, most things are vary similar if not the same between SH3 and SH4.
Commander Gizmo is offline   Reply With Quote
Old 09-21-09, 12:56 AM   #9
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
Default

By the way, I'm still willing to create this software. I just need to talk with a few of the folks that know the ins and outs of the file formats in SH3/4/5. I don't see the point in reinventing the wheel after all.

Any volunteers? Any interest in this project?
Commander Gizmo is offline   Reply With Quote
Old 09-21-09, 04:10 PM   #10
GlobalExplorer
Admiral
 
Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
Default

I would heed JScones advice. While this is a good idea, it is much too late and seriously I think JScones is spot on when he says that you understimate the task in front of you.

Very late, when my work on my programs were finished I realized I could have delivered a small library with backend functionality to SHIII. I took some steps and offered a rather powerful ini parser, that could have been the backend for many applications, but no one responded. Except JScones. But he is the one person in this forum who needs my functionality least.

Now this can only be something to keep in mind for the next time.

So I suggest when the next big thing will have emerged, you could try to influence the programming members while there is still time. Try to imbue them with the spirit of your concept: opensource functionality, separate backend from application logic, bundle their efforts and use a CVS, provide documention, create metadata for their mods, etc.

If you're really good you might get a large number of people to work in a common framework, lets call it e.g. "Silent Hunter Community Library". But even for a completely new start this wouldn't be easy.

Good luck!
__________________

GlobalExplorer is offline   Reply With Quote
Old 09-22-09, 10:55 AM   #11
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
Default

Actually, I write software professionally and already have a universal parser program that uses the backend and plug in library partially built in a csv. I would be offering this community a version that will be locked to only SH plugins for free rather than the commercial version. Since it is really just an app that can take COM and command line commands to parse files as ordered, it would meet all of your given suggestions. Since this app could easily be improved and expanded to handle SH4/5/6/etc I think it is very much still very much in demand and worth the effort.

I will say it again:
If you think it can't be done keep it to yourself. If I want to waste my life attempting such a project, it is my life to waste. Does anyone have any desire to use this thing, or should I just release the commercial version and ignore this community's release?
Commander Gizmo is offline   Reply With Quote
Old 09-24-09, 11:26 AM   #12
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
Default

Quote:
Originally Posted by JScones View Post
So you intend completely re-writing/re-developing SH3Gen, SH3Cmdr, JSGME, S3DEditor, JTxE, SH4MenuMaker, the Terrain Editor and many other tools that collectively have taken over 10 years to develop in various languages (let alone .NET or Win32) and in some instances by very experienced developers, into one "super application" covering both SH3 and SH4? What's your anticipated implementation date? I mean, have you considered that by the time you're ready to release such a beast, people may not only have moved on from SH3, but they may even have started moving on to SH5?
Just to clarify, I do not envision this thing offering the more in depth capabilities of some of these tools. For instance, the terrain editor (which I haven't even heard of) no doubt has a 3D view of some sort to permit you to see the changes you are making. While a plug-in for my app could be built to handle this, it might make more sense just to use the tool that already exists. However, once the desired changes have been made with the existing tool, my app could find these changes and build a script to make those same changes in any user's game files.

My app serves mainly as a database connection to all the variables used in all the data files rather than a fully featured editor for each data type. So another app could be written as a front end to mine which could use the database to access and change all the data desired. Thus the developer is freed from the trouble of finding and parsing the files in order to get and set the data therein.

Again, with a proper command set available in the plug-in interface a person could write a plug-in for my app that would handle the in depth editing of a program by means of their own forms, UI, etc. As to whether anyone would take the time, that is unknown at this point. I mght even undertake to write them all over time. The fact that my app could find the changes in the files and then write a script means that current tools can still be used to make changes and then my app used to apply them to the end user's game files.

Basically, although it could handle everything if we took the time to write the plug-ins, it isn't necessary for the program to serve it's purpose. Like I said before, I don't really intend to reinvent the wheel, just offer one source for all known game variables.
Commander Gizmo is offline   Reply With Quote
Old 09-25-09, 11:35 AM   #13
GlobalExplorer
Admiral
 
Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
Default

Quote:
Originally Posted by Stiebler
COMMENT: text files first
FILE: data\cfg\text1.cfg
COMMENT: only one occurrence of submarine depth
CHANGE: submarinedepth=
TO: submarinedepth=20
CHANGE: crashdepth=
TO: crashdepth=150
FILE: data\cfg\text2.cfg
CHANGE: maxdestroyerspeed=
TO: maxdestroyerspeed=25
COMMENT: change 3rd occurrence of 'No_of_torpedoes'
CHANGE: No_of_torpedoes[3]=
TO: No_of_torpedoes=5
COMMENT: (and so on for all text files, ignoring any which do not need to be altered)

COMMENT: now the data files
FILE: data\library\data1.dat
COMMENT: change 1st occurrence of maxrange (4-byte floating variable)
CHANGE: FLOAT: maxrange
TO: FLOAT: maxrange=2000
COMMENT: change 7th occurrence of 'ArmorLevel' (4-byte integer)
CHANGE: INT: ArmorLevel[7]
TO: INT: ArmorLevel=200
FILE: data\submarine\data3.sim
COMMENT: change 3rd occurrence of 'TorpedoDoorOpen' (BYTE, probably true or false, but 16 alternatives)
CHANGE: BYTE: TorpedoDoorOpen[3]
TO: BYTE: TorpedoDoorOpen=1
Interesting idea, but why not use something like SQL?

UPDATE <section> SET <value> WHERE <condition>

The game data could either be stored in a database and manipulated via the dbms, or it could be directly manipulated with a dedicated SQL interpreter (needs to be implemented of course).
__________________

GlobalExplorer is offline   Reply With Quote
Old 09-25-09, 12:00 PM   #14
Commander Gizmo
Watch Officer
 
Join Date: Jan 2007
Posts: 339
Downloads: 76
Uploads: 4
Default

Quote:
Originally Posted by GlobalExplorer View Post
Interesting idea, but why not use something like SQL?

UPDATE <section> SET <value> WHERE <condition>

The game data could either be stored in a database and manipulated via the dbms, or it could be directly manipulated with a dedicated SQL interpreter (needs to be implemented of course).
Now you are getting it! That is just about the way the software would work out; although I'm not sure if SQL style lanuguage for scripting would be best, or something more custom. Heck, we could even do it with actual SQL.

The trick is that you would reference the actual files rather than have a real SQL database.


Another difference, rather an trying to store text stings everything would be key/value pairs so that you can change the value (or even the key I suppose) directly rather than trying to replace a string like "key=value". That's just way to clumsy for professional software.

When a value is changed, the data is altered in the matching file. This is handled through a plug-in that knows how to handle that file. If new file types are added to a new version of the game, you just create a new plug-in or change the existing one to handle it. The core program does not need updated.

Does any of this make sense yet?
Commander Gizmo is offline   Reply With Quote
Old 09-25-09, 11:00 PM   #15
JScones
Navy Seal
 
Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
Default

Quote:
Originally Posted by Commander Gizmo View Post
First of all, thank you for the feedback. I am happy to finally have some dialog on the subject.

Just because you were unable to accomplish a solution to the problem, you assume no one else can either. How sadly close minded of you.

...

Stop trying to place your own limitations upon me. Does it help to know that I own an IT firm and don't have to write my software on my own? I do this professionally people.
<pictures Gizmo stamping feet and shaking fists like spoilt child> And your point is?

Does it help you to know that in my younger days I was a professional/qualified software engineer (Assembly, Basic, C, C++, CICS, Clipper, COBOL, Fortran, JCL, LISP, Pascal, Object Pascal, VB, .NET), before I escalated through the ranks of (project/program) management? I have owned my own software development business since 1984. I have entered into contracts with multi-national businesses to implement multi-million dollar software systems. I have led teams of upwards 120 staff throughout all stages of the systems development lifecycle. Software I have both developed and led development of is used in Governments and large financial institutions worldwide. My software has been favourably reviewed worldwide in magazines and newspapers. Even the simple freeware stuff I throw on my website has made its way onto many coverdiscs around the world over the years...

And yet there are other guys here who are much better coders than I am. So I fail to see the relevance of your point, other than as a misguided way of "demanding" some kind of respect... FAIL.

Indeed, maybe there's a reason why these other very good coders haven't walked down the path that you are embarking upon.


Now, having said that, how does your idea differ to the static and randomised events features that have been part of SH3Cmdr since 2006? These features already give the user the ability to alter ANY value (without needing to know what type it is) in ANY game file of ANY file type (except .XML) and with full reversal. Randomisation within user-defined boundaries, changes based on user-defined date ranges, user-defined probability, it's all been done. And all in less than 150 lines of code. With very limited instruction Hemisent used the feature quite successfully with his malfunctions and sabotage mod which is now an inclusion in SH3Cmdr.

It's not perfect and needs a few improvements to bring it up-to-date, most specificially the replacement of the static binary file offset searching with dynamic searching (I have half done this, but only for internal binary file changes), but it's there, working now and can be used by anyone who reads the instructions.

As it's completely self contained with no game dependencies, the code is portable. I gave it to the prospective developer of "SH4 Skipper" to plug into it. And I will plug it into SH5Cmdr, with my improvements, if there's a need for it there.

Now I see you've taken a year and are still fluffing around with the concept yet getting shirky with very knowledgable guys like Stiebler and GlobalExplorer who are simply trying to highlight the potential pitfalls. Not an overly effective way of engendering community support now, is it?
JScones is offline   Reply With Quote
Reply


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 05:08 PM.


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