Forum

> > Stranded II > General > Stranded II Mod Viewer (Hosted on SourceForge)
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Stranded II Mod Viewer (Hosted on SourceForge)

120 replies
Page
To the start Previous 1 2 3 4 5 6 7 Next To the start

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Tomo
User Off Offline

Quote
I don't speak English fluently, but I hope you will understand me


After I select sys an error window shows (shows up?).
Here is my 'translation'.
An unsupported (unhandled?) exception occurred in the application. If you click continue button, application will ignore the error and will try to continue. If you click close button, apllication will be immediately closed.

Invalid format of the input (input stream? It's 'ciąg wejściowy' but there is not such article on wikipedia so I am not sure :P)

I probably translated this sentence wrong because I don't know much about IT

Details                    Continue     Close     

When I click details a text shows

Szczegółowe informacje na temat wywoływania debugowania w trybie JIT (just in time)
zamiast tego okna dialogowego znajdują się na końcu tego komunikatu.

************** Tekst wyjątku **************
System.FormatException: Nieprawidłowy format ciągu wejściowego.
w System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
w System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
w System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
w Stranded_II_Mod_Viewer.Macros.LoadItemFile(String filePath, String workingFolder, List`1 list, Boolean suppressWarnings, List`1 errorLog)
w Stranded_II_Mod_Viewer.MainForm.LoadFiles(String workingFolder)
w Stranded_II_Mod_Viewer.MainForm.ReloadModFolder(Object sender, EventArgs e)
w System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
w System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
w System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
w System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
w System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
w System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
w System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
w System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
w System.Windows.Forms.Control.WndProc(Message& m)
w System.Windows.Forms.ScrollableControl.WndProc(Message& m)
w System.Windows.Forms.ToolStrip.WndProc(Message& m)
w System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Zestawy załadowane **************
mscorlib
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4206 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Stranded II Mod Viewer
Wersja zestawu: 3.5.0.1
Wersja Win32: 3.5.0.1
CodeBase: file:///C:/Users/Monika/Desktop/mody%20do%20S2/SIIMV-10-05-02%2012-30/Stranded%20II%20Mod%20Viewer.exe
----------------------------------------
System.Windows.Forms
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4205 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4206 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
Wersja zestawu: 2.0.0.0
Wersja Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Debugowanie w trybie JIT **************
Aby włączyć debugowanie w trybie JIT (just-in-time), plik .config tej
aplikacji lub komputera (machine.config) musi mieć
wartość jitDebugging ustawioną w sekcji system.windows.forms.
Aplikacja musi być również skompilowana z włączonym
debugowaniem.

Na przykład:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Gdy debugowanie JIT jest włączone, wszystkie nieobsługiwane wyjątki
są wysyłane do debugera JIT zarejestrowanego na komputerze
i nie są obsługiwane w tym oknie dialogowym.

I downloaded .Net 3.5 Web before and my OS is Vista if it makes a difference
BTW could you show me all mistakes in my post so I could improve my English?
edited 4×, last 16.08.10 09:45:22 am

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
Tomo...

That error tells me it had a problem converting a tag into a decimal number while reading an item file. So there must be an item file with a decimal value (for example, "scale=" or "alpha=") that is not correctly typed. I usually find this is because someone uses o instead of 0.

I can't actually tell you where because I'd need to load the mod you loaded before I could diagnose where the problem is. However, now that I know there's an item value not converting correctly, I will look into it. So:

1: Try to find the error in your scripting (If you find it an tell me, you save me a lot of time searching for something without any direction).

2: If you can't be bothered looking for where the error is, send me your mod (the one that caused the error) and I will run it through the debugger and find the problem.

Thanks...

Stranded2 Lover...

Please don't leave negative comments like that here. It gives no information of the problems you're having and it gives people a bad impression of the application.

Although I have answered your message, I will also answer here...

In order to OPEN A MOD in Stranded 2 Mod Viewer (S2MV), you must select the "sys" folder from within the mod. For example, if you downloaded the english version of Stranded II and extracted it to your "C:\" drive, when S2MV asks you to select a folder, you would select "C:\stranded2_en\mods\Stranded II\sys".

If anyone else has any problem in using this, please message me so that I can try to resolve it. Please don't just post negative comments. I've spent a lot of time trying to make something useful to you all.

It looks like I'll be getting back to work on this...
edited 1×, last 26.08.10 05:53:10 pm

old Hmm

Stranded2 Lover
User Off Offline

Quote
Now i will create my items in inf* file?
But i don't no how do that

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
Please keep in mind that at the moment, this is a mod viewer. Its main purpose is to read the script files and lay out the information in a visble and connected manner. However, it is nowhere near the stage where it will build script files for you. This is where the project is leading, but it's not there yet. However, the "compendium" functions have been designed so that you can copy the definitions into a new script file straight from the compendium and modify it to your needs. Not exactly editor functionality, but it does make copying items/objects/units easier.

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

charzy
User Off Offline

Quote
I'm getting this when I load the sys file, it's for "massive mod"

Unhandled exeption has occoured in your application. If you click continue, the application will ignore this error and attempt to continue. If you click quit, the application will close immediatly.

Input string was not in a correct format

Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Stranded_II_Mod_Viewer.Macros.LoadItemFile(String filePath, String workingFolder, List`1 list, Boolean suppressWarnings, List`1 errorLog)
at Stranded_II_Mod_Viewer.MainForm.LoadFiles(String workingFolder)
at Stranded_II_Mod_Viewer.MainForm.MainForm_Shown(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnShown(EventArgs e)
at System.Windows.Forms.Form.CallShownEvent()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Stranded II Mod Viewer
Assembly Version: 3.5.0.1
Win32 Version: 3.5.0.1
CodeBase: file:///C:/Documents%20and%20Settings/Matthew/Desktop/SIIMV-10-05-02%2012-30/Stranded%20II%20Mod%20Viewer.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


When I click "continue" it freezes.

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
1: Thanks for giving me the full error message. From this, I can tell that while reading an item file, there is an item with a definition that is not decimal, but should be (or not depending on whether I made the error in coding). This is gonna make it much easier to find because now I know where to look.

2: Thanks for the mod information. Now I know what caused the error. Was it the latest released version of massive mod?

3: All errors that people post with the full error message and mod information will be resolved, so thanks Charzy for being so forthcoming, I can now locate this error!

EDIT: I found it...

In the currently available version of my app, there is an error in reading values for colors, so if there is a poorly constructed color definition, the app will crash.

However, I forgot to mention that after my last release, I did loads of work on this, but then I lost my system. However, the changes were safely backed up. After running MM through my development build, I got no crashes and my viewer reported the error.

#### Item Error ####
The items_material.inf
Item Name: Fused Silica (ID: 4998)
has a poorly constructed "color=" definition.
This will be defaulted to "0,0,0" for processing.

Yeah, so in massive mod, in items_materials.inf, item 4998 (first in file) has "color=o,200,0". Change the 'o' to a '0'.

As for my mod viewer, I have just loaded it up. This is a bit of a complicated situation because I originally wrote this in .Net 3.5, but I lost the IDE when I lost my main drive, but I retained the project. Now I'm using a newer IDE, my project has been updated... to .Net 4.0... Which means all new releases are gonna require .Net 4.0 to be installed on your computer... Sorry guys... On the up side... LOADSABUGFIXES! I had completely rewrote the error checks on all variables... So there should be no more errors like this.

I'll post an update after I have thoroughly tested this version. Message me today if you want it to test it... It's now 7:45am and I'm going to sleep at 11am cause I got work at 8pm, so if you wanna help me test this... Be in quick... I will remind you, you will have to install .Net 4.0 if you don't already have it installed.

Edit: Never mind. All the information is already up in the first post.

Released: SIIMV 10-09-13 09-30

Tested on these mods before release without any errors:
Stranded II (Gold) English
S2Ext
Massive Mod (Latest)
Bae Mod
Beyond The Polar Circle
Kidnap Mod
Lost In Space
Mod Gradira
Northern Legion
RealTex
Seasons
V666

Please let me know how you get on with this version! As far as I can see, this version is damn near it. One or two more functional additions and a heck of a lot of help writing and I might actually have a release candidate for you guys. Has anyone got anything else they wanna see on the viewer side?

==================
In the next release:
- Splash screen... Just something to make it look more pleasant.
- Can search for building by buildingsite.
- Cleared error where script=start was added to scripts and description=start was added to descriptions.
- Working on a new feature, "Building Plan", where you can select a building deep in the building tree and bring up a plan, showing you the order of the building, what each building requires and where you can find the required items if they're looted, spawned or combined to make.
- Next release will be hosted on unrealsoftware.de! Thanks to permission from DC.
edited 7×, last 17.09.10 08:55:44 pm

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Sirnik
User Off Offline

Quote
Got another error for you (I apologise for Russian, and if you have any difficulties understanding, feel free to ask)
Spoiler >

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
Is this error from my new .net 4.0 release?

This error tells me that when you loaded a mod, an item file had a definition that was supposed to be a number that isn't. Maybe I've got an int that should be a float. I'll have a look, but I'm sure this type of error was cleaned up.

What mod did you load to cause this error?

---------

Just had a massive check across the loading process and datastructures. The only possible definition from a load file that could crash the app is the id= integer. All other definitions have error capturing, so if it's the newest release that cause this, then you have an item file with an item that has an id that isn't a number. Now that you've pointed this out, I'll see what I can do to stop it.

----------

Ok, that's every definition from every file error checked. I'll be amazed if people keep finding more after my next release. I also rewrote the building file reader in the new switch style, which is much faster than if/else fallthrough statements. This is now the standard format for file handing, if there are any adventurous programmers who wanna take a pop at this out there. I've also added more CStrings to make it faster by combining many combinations of errors into a standardised format.

I'm working on fine tuning this to almost perfect before I begin the long and really boring task of writing the help section... I'm not looking forward to that.
edited 2×, last 18.09.10 12:34:16 pm

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
Sirnik has written
Thanks, Psytechnic!) That was the latest release - at least, I downloaded what was named thus from the first page.


There are 2 versions on the first post at the moment. At the top, in bold is the latest .net 4.0 version. Below it is the unsupported .Net 3.5 version.

I'm thinking of changing the help window into an about windown and just linking to a help file.

The application now remembers your width and height setting as well as maximised state

You guys have a choice, you can have a release before I do the building planner section or after. If it's before, I'll upload it to mega upload because I ain't gona fill DCs server with version after version of betas.

--------------------------

Just done a massive amount of error checking on duplicate ids for buildings, items, objects and units.

--------------------------
edited 1×, last 22.09.10 11:55:11 am

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Sirnik
User Off Offline

Quote
Hm. I've just re-downloaded the .NET release and a shodow of doubt crossed my mind: could you by any chance include a previous version into the archive? Because I've tried to d-load the previous one and BOTH archives contained a file with one and the same creation date, namely 2nd May 2010.

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
That is so weird... I... Must have had a slight error in judgement... I'll quickly tie up some loose ends and bang out a quick mid-release.

I'm really sorry, I honestly can't understand how I included the old one, mainly because I don't have it anymore!

But never mind, I'll get another one out today. Gimmie a few hours.
-------------------

UPDATE: Released a new version with a build version label on the help page to let you know what version you have. This also has all the bug fixes I've done in the mean time, incuding a massive overhaul of the underlying id system to cater for duplicate id errors. Next on the agenda is parsing the game.inf file and grabbing values to help check if the correct max ID limits are set.

Released: SIIMV 4.0.0.1
edited 2×, last 25.09.10 01:31:49 pm

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Psytechnic
User Off Offline

Quote
Version 4.0.0.2 is under construction, but I've just had my OS destroyed, so it might take me some time to get the next release out. Sorry guys. However:

Known fault in 4.0.0.1
If a mod has a building scripted with an "objectid=" or "unitid=" for an object/unit that doesn't exist, SIIMV 4.0.0.1 will crash as it attempts to load the building table, as it can't link to the object/unit to get the information needed to fill out the building's data row. This is a critical error and will cause the application to hang. This has been rectified for the upcoming 4.0.0.2 release.

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

BiGSiD
User Off Offline

Quote
-You could remake the simulated Parser for Stranded-scripts. To find every single error or missing sign.
-There could be a list of all variables too.
-Maybe stats for count of any single command, like 10times:animate.
-a graphical buildingtree with simple rectangles and lines, but paintet by program.
-building files like 'items.inf/objects.inf/units.inf' from data of the other scriptfiles, with ID-counting and groups.
-a little helper(Wizard) to insert any new item/object/unit with current ID allready
- put all strings of your program into separate strings-file, with language-ID (or not) to build a german/or whatever translation of your tool
-some templatefiles for every script-comand, to add any new command (like in S2.5)


or you decide to make an open source from your project

I would very happy, if you make your program better and better. but i like your tool even if you can do anything to love it!

old Help!

hacked
User Off Offline

Quote
R.I.P Megaupload.

old Re: Stranded II Mod Viewer (Hosted on SourceForge)

Hurri04
Super User Off Offline

Quote
yeah, the mirror is down.

as much as I hate having to push an old thread, I have to ask if someone maybe still has this mod viewer and could re-upload it?

the reason is that I made some pretty massive changes in the upcoming version of my Cast Away mod but apparently I also added quiet an error somewhere.

now everytime I start the game crashes while the first loading-bar is at 98% and I receive a message that says
Quote
Invalid OBJECT ID for BUILDING (0)



Edit: hmm, problem found&fixed:
I forgot to delete a "script=start" line in an object definition file when I deleted the script of that certain object.

still, I'd like to check my mod for remaining script errors anyway, so a re-upload would be much appreciated!
To the start Previous 1 2 3 4 5 6 7 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview