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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old March 16th, 2009, 12:41 PM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default getspldscr: bad splnr (solved by lch)

So I've been playing with very large mods and I've been hitting a bug that I don't understand. I get a crash with 'getspldscr: bad splnr' when I click for spell description in research on spells added by mods. I'm pretty sure it isn't a bug in the mod because I can get the crash with spells from two different mods.

My first guess is that there is a hard limit on #newspell calls although I can't find it in the documentation I have. The crashing mod calls it 157 times. Can someone confirm this or tell me a different direction to pursue.

I have also gotten a crash with a 'bad splnr' during hosting (different method than 'getspldscr' though, can't remember exactly). Re-hosting the turn would sometimes finish with no errors.

If it would help I could post the mod and a .trn but it would be very large ~3M zipped.

Last edited by pyg; March 17th, 2009 at 01:25 PM..
Reply With Quote
  #2  
Old March 16th, 2009, 01:48 PM
Burnsaber's Avatar

Burnsaber Burnsaber is offline
Colonel
 
Join Date: Jun 2007
Location: Finland
Posts: 1,617
Thanks: 179
Thanked 304 Times in 123 Posts
Burnsaber is on a distinguished road
Default Re: getspldscr: bad splnr

Perhaps two same mods are trying to use the "alter orginal dom3 spell to a onebattlespell you want" - trick on the same spell?
__________________
I have now officially moved to the Dom3mods forums and do not actively use this account any more. You can stll contact me by PM's, since my account gives e-mail notifications on such occasions.

If you need to ask something about modding, you can contact me here.

See this thread for the latest info concerning my mods.
Reply With Quote
  #3  
Old March 16th, 2009, 01:56 PM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: getspldscr: bad splnr

Quote:
Originally Posted by Burnsaber View Post
Perhaps two same mods are trying to use the "alter orginal dom3 spell to a onebattlespell you want" - trick on the same spell?
Checked, no. All #selectspell calls in the mod are uniq.
Reply With Quote
  #4  
Old March 17th, 2009, 03:54 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: getspldscr: bad splnr

There's a hard limit of 999 spells in the game in total. Getting over that triggers the error in this function. As of 3.21, there are already 855 spells in the base game.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
The Following User Says Thank You to lch For This Useful Post:
  #5  
Old March 17th, 2009, 05:36 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: getspldscr: bad splnr (solved by lch)

P.S.: 3.23 added eight new spells, so there are now 863 spells in base game. 136 slots left for mods.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
The Following 2 Users Say Thank You to lch For This Useful Post:
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 05:02 PM.


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