.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

BCT Commander- Save $7.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #11  
Old December 12th, 2006, 08:37 AM
Edi's Avatar

Edi Edi is offline
National Security Advisor
 
Join Date: Oct 2003
Location: Helsinki, Finland
Posts: 5,425
Thanks: 174
Thanked 695 Times in 267 Posts
Edi is on a distinguished road
Default Re: Unit array is too small :(

Yes. The first time a single corrupt/out-of-bounds/incorrect item is accessed, the whole shebang goes tits-up. You need to remove the problem sprite altogether and try without it. If the same problem persists after that, it needs more investigating.

Mind you, I'm just conjecturing based on how map files behave. What with the 563 sites (1-563), the game will behave normally as long as you stay in provinces with correct assignment and don't access the nation overview. But as soon as you try to enter a province that has #feature 564+ assigned in the map file, or you press F1 (which accesses the province for site reference) you get the fatal error.

Since mod files, just like map files, are text based sequential command lists where the commands are executed in order, it logically follows that the first instance of accessing an entity supposedly created by an invalid command kills the process dead.

Edi
Reply With Quote
  #12  
Old December 12th, 2006, 03:08 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Unit array is too small :(

Okay, here's how I know that isn't the problem.

Compare the two mod files I've attached (megamod_late.dm and megamod_late2.dm are zipped together) - you can swap from one to the other by renaming and then restarting the dominions executable. The only difference between the two is WHERE IN THE FILE the dwarves (Kharam Dzu) appear. You will also need the attachment at the root of this thread for the graphics if you don't already have it.

If Kharam Dzu appears in the middle of the file, you can play them (sprites for their initial commander load just fine), but when you try to recruit units, the game crashes (one of their recruitables is triggering the sprite error, therefore.)

On the other hand, if you move that entire block of monsters to the begining (as in the second file) Kharam Dzu becomes playable - and Trade Confederation, which appears immediately before Kharam Dzu in the first file, becomes unplayable. If you look at exactly what I'm moving, it has to be the number of things and not any particular thing which is causing the crash. The other nations that are playable in version 1 remain playable in version 2, even though they are also now-after Khazam Dzu.

So - Trade Federation becomes unplayable when you add Kharam Dzu to the begining of the file, but everything before Trade Federation remains playable, meaning I haven't added anything to the begining that screws up the entire rest of the file. Am I making sense?

I think this means that something somewhere is overflowing, and it's happening halfway through the unit list, and effecting all units after the overflow, even though all the units are formatted just fine.

Since whatever it is that's overflowing is triggering a sprite loading error - I would tend to assume that it's the custom sprite memory block (or something, again I don't know how Johan has engineered the thing) which is overflowing.

Is too late to be added to the beta testers list? I really want to get this thing working and if any of the beta testers, who are presumably more knowledgeable in this than I am, could verify my conclusions, I'd be quite appreciative because I'm not a tester and I'm kinda in the dark here.
Attached Files
File Type: zip 478638-megamod_late2.zip (118.5 KB, 123 views)
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
  #13  
Old December 13th, 2006, 05:28 AM
HoneyBadger's Avatar

HoneyBadger HoneyBadger is offline
General
 
Join Date: Oct 2006
Posts: 3,445
Thanks: 85
Thanked 79 Times in 51 Posts
HoneyBadger is on a distinguished road
Default Re: Unit array is too small :(

I'm really hoping that the numbers of units expands a sizeable amount, into the 5000 range, because I'm currently working on something around 7 or 8 nations, and they're all unit heavy. I could probably add that many units to a game as things are, but their are too many good mods out there (and I'm sure more and better to come) that I'd like to incorporate over time into my own version of a balance-mod. Even I would-well...probably-be satisfied with a limit of 5000 units.
__________________
You've sailed off the edge of the map--here there be badgers!
Reply With Quote
  #14  
Old December 14th, 2006, 12:22 AM
Singularity24601's Avatar

Singularity24601 Singularity24601 is offline
Corporal
 
Join Date: Oct 2006
Posts: 55
Thanks: 1
Thanked 10 Times in 2 Posts
Singularity24601 is on a distinguished road
Default Re: Unit array is too small :(

Perhaps 5000 units, 50 nations, each with 20 heroes, 10 multiheroes...
Reply With Quote
  #15  
Old April 15th, 2007, 11:33 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Unit array is too small :(

I dont mod well enough, and dont have the time to look at one carefully, so I will toss this out and you cn forget it if its dumb.

The only mod I did try to do was an All_Nations mod. The problems I ran into was that the game did not handle duplicate handles well. I had to go thru and rename ALL of the nations so Ulm became early_Ulm, mid_Ulm, and late_Ulm. The empty slots became named as their number slots such as Nation_70.

Is there any chance of a "two using the same handle" situation in your mod? Like I said, I havent looked at it so if thats a stupid question then forget it.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #16  
Old April 15th, 2007, 12:08 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Unit array is too small :(

Actually, Gandalf, that might be the cause. Machaka, Spider Cult is named Machaka, and having it the same game with MA Machaka could cause problems.
Reply With Quote
  #17  
Old April 15th, 2007, 12:10 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Unit array is too small :(

Nah it's not that. It's just a limitation of Dom3 right now.
Reply With Quote
  #18  
Old April 15th, 2007, 02:30 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Unit array is too small :(

Sounds worth looking at. Keeping to Ulm as an example, in my original version I had been told by other modders that this was all that was needed:
#selectnation 2
#era 1
#end

#selectnation 31
#era 1
#end

#selectnation 52
#era 1
#end

But in play testing it all I got was one of the Ulms as an option. I think it was the first one.

What I ended up having to do was:

#selectnation 2
#name "early Ulm"
#era 1
#end
#selectnation 31
#name "mid Ulm"
#era 1
#end
#selectnation 52
#name "late Ulm"
#era 1
#end

In my case all I was interesting in was getting it to show up on the menu as a nation to play. It apparently only have room for one "Ulm". But Im thinking that if the game treats nations that way then it might also be picky about other things being named the same.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #19  
Old April 15th, 2007, 10:42 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Unit array is too small :(

Yeah I know, but that isn't the problem here. Well, at least as far as I know.

I've never run into the game caring about things with the same name apart from on the nation selection screen, where as you say you can't have two called simply 'Ulm'.
Reply With Quote
  #20  
Old April 15th, 2007, 10:44 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Unit array is too small :(

Yeah, that isn't the problem.

You can name the units "1" through "110" (or whatever number it was) and it still triggers the error, IIRC.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 11:44 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.