• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Hey Jamie, do you know what's wrong?
Code:
Enter the number of the choice that you want
5
Loading data...Done!
Loading block headers...Done!
Making map\lightmap1.tbl
Doing row: 102
Process is terminated due to StackOverflowException.
Log.txt is empty.
 
ADukes said:
Hey Jamie, do you know what's wrong?
Code:
Enter the number of the choice that you want
5
Loading data...Done!
Loading block headers...Done!
Making map\lightmap1.tbl
Doing row: 102
Process is terminated due to StackOverflowException.
Log.txt is empty.
Not really, though it could be a infinite loop, though that usually is caught and displayed and logged.

You have successfully done this before, right?

Does this occur every time you try, and at the same row?

Perhaps upload the map(s) that you changed.
 
Jamie550 said:
You have successfully done this before, right?
Yes, with older versions. So I can't say if it's a problem with the latest mapmaker version only or with some of my files.

Jamie550 said:
Does this occur every time you try, and at the same row?
Every time and always row 102.

Jamie550 said:
Perhaps upload the map(s) that you changed.
Graphic or radish files?
 
Fixed.

The problem was with MapMaker not finding a neighboring province for a border pixel. In previous versions, the -1 would mess the lightmaps up (the game could read it correctly, but MapViewer and ObjectEditor couldn't. In your version, the "fix" caused a infinite loop. Now, the fix first sets IsBorder=false and then calls itself.

Expect the fix within hours.
 
MapUtility 1.2.1 is out, with some minor fixes and improvements.

Changelog:

MapUtility v1.2.1

MapViewer v6.2.1
-Fixed some problems with extracting readonly files

MapMaker v2.2.1
-Radish headers exported to separate file
-Making initial radish files and making adjacents now have better status updates
-Speed improvements in reading and writing radishes
-Bound boxes now made from lightmap1, not radishes, which is much faster
-When a border is not found, no longer causes an infinite loop, but simply returns the value without the border

MapExtractor v1.0.1
-Fixed some problems with extracting readonly map files
 
A small problem with the new version:
Code:
MapMaker Log
Recording started at 21.06.2008 12:06:18

21.06.2008 12:06:18
Message: Missing file!
Source: MapMaker
Target Site: MapUtility.AdjacentTable get_AdjacentTable()
Stack Trace:    bei MapUtility.Global.get_AdjacentTable()
   bei MapEditor.Program.BeginWork(String[] args)
   bei MapEditor.Boot.Main(String[] args)
Misc
 
After the extraction of the PNGs, as soon as I try tu use MapMaker (even without actually editing any PNG file) I get this log

MapMaker Log
Recording started at 21/06/2008 12.09.31

21/06/2008 12.09.31
Message: Missing file!
Source: MapMaker
Target Site: MapUtility.AdjacentTable get_AdjacentTable()
Stack Trace: in MapUtility.Global.get_AdjacentTable()
in MapEditor.Program.BeginWork(String[] args)
in MapEditor.Boot.Main(String[] args)
Misc
21/06/2008 12.09.31
Message: Missing file!
Source: MapMaker
Target Site: MapUtility.AdjacentTable get_AdjacentTable()
Stack Trace: in MapUtility.Global.get_AdjacentTable()
in MapEditor.Program.BeginWork(String[] args)
in MapEditor.Boot.Main(String[] args)
Misc
 
using objecteditor, got this...

ObjectEditor Log
Recording started at 21/06/2008 18.25.26

Successfully reached start


#################################
An exception has occurred.
#################################
Exception: System.Windows.Markup.XamlParseException
21/06/2008 18.25.27
Message: Impossibile creare un'istanza di 'Window1' definita nell'assembly 'ObjectEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Eccezione generata dalla destinazione di una chiamata. Errore nel file di markup 'Window1.xaml', riga 1, posizione 9.
Source: PresentationFramework
Target Site: Void ThrowException(System.String, System.Exception, Int32, Int32, System.Uri, System.Windows.Markup.XamlObjectIds, System.Windows.Markup.XamlObjectIds, System.Type)
Stack Trace: in System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
in System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
in System.Windows.Markup.BamlRecordReader.ThrowException(String message, Exception innerException)
in System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
in System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)
in System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
in System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
in System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
in System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
in System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
in System.Windows.Markup.TreeBuilder.Parse()
in System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
in System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
in MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
in MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
in System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest request, WebResponse response, Uri destinationUri, Object navState)
in System.Windows.Navigation.NavigationService.DoNavigate(Uri source, NavigationMode f, Object navState)
in System.Windows.Navigation.NavigateQueueItem.Dispatch(Object obj)
in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Misc data
System.Collections.DictionaryEntry
 
Hannibal Barca2 said:
Thanks a thousand :D! Works now!!

I advise you to make this province much bigger, it could be really hard to click on it now if you place there army. And if you can change map, you could help Vladimir II to improve HoI2 map, change province borders or province names.
 
Last edited: