| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 | |
|
Deity
Join Date: Sep 2008
Posts: 4,284
|
Access violation error
I was skimming through the pedia after some modding and I got a RuntimeError: unidentified C++ exception in CvPediaMain; in placeCorporations, line:
Code:
screen.setTableText(tableName, iColumn, iRow, u"<font=3>" + item[0] + u"</font>", gc.getCorporationInfo(item[1]).getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_CORPORATION, item[1], 1, CvUtil.FONT_LEFT_JUSTIFY) Quote:
What could that error be? |
|
|
|
|
|
|
#2 |
|
The White Wizard
|
That error means you tried to use a getSomething(int i) call and it was out of bounds. So you tried to look up what corporation was at -1, or something like that. I can't tell until I see the code, but run a debug build, it will give you an assert right before usually.
__________________
"A Witty Saying Proves Nothing" -Voltaire Civilization 4 Mods: Rise of Mankind - A New Dawn 1.75 Civilization 5 Mods: Active City Defense, Tech Diffusion Minecraft Mods: Spout & Spoutcraft Lead Developer |
|
|
|
|
|
#3 |
|
Deity
Join Date: Sep 2008
Posts: 4,284
|
I did run one, no assert, which surprised me... It really comes from WIDGET_PEDIA_JUMP_TO_CORPORATION, which calls ParseCorporationHelp (or something) which then calls to CvGameTextMgr::setCorporationHelp which then calls to CvCorporation::getCrime() which bugs.
As a note, I have added a new class in CvInfos, as well as a new pedia page, hence a new widget... Everything is working; at least everything I have added, since the corp page doesn't work anymore... Edit: Oh, and every WIDGET_CLOSE_SCREEN are broken too... I'm willing to bet both bugs share some origin ![]() Edit 2: With some more tests, it appears the defense modifier works like a charm, since it gets added to my city if I put the corporation in it... while the game can't use the exact same function to build the help string...? Last edited by Opera; Jan 23, 2010 at 12:08 PM. |
|
|
|
|
|
#4 |
|
Deity
Join Date: Sep 2008
Posts: 4,284
|
Ok, so, now it shows up to 4 corporations and CtD's when I click on one of them
![]() Edit: and now it doesn't show any corp anymore... wtf? |
|
|
|
|
|
#5 |
|
Say No 2 Net Validations
![]() ![]() |
Your HDD and RAM are okay?
Did you maybe add all the things to a part of the code, which is already memory intensive? |
|
|
|
|
|
#6 | |
|
Deity
|
Quote:
__________________
Fall from Heaven: - Random Stories and Fragments - Trivia Thread - The Complete FfH Manual - Lore Compendium - The Erebus Project - #erebus - The Mega Story General Information: Mod Details, World Information Resource, Easter Eggs, Quick-Guide, Empyrean/Esus & Guilds Information, The Other Religions, Mana Chart, Religous ThemesSpecific Details: FfH Wikia, FfH Wiki, FF Wiki, World Spells, FoL Guide, Council of Esus Guide, Magic Comparison, Potential Fix for MAF issues |
|
|
|
|
|
|
#7 | |
|
Deity
Join Date: Sep 2008
Posts: 4,284
|
Quote:
|
|
|
|
|
|
|
#8 |
|
Deity
Join Date: Sep 2008
Posts: 4,284
|
Bug fixed! Thank you so much xienwolf
![]() At least, when I'd want to add new widgets, I'll know I'd have to put them at the end
|
|
|
|
|
|
#9 |
|
Deity
|
It is best to get in the habit of always working at the end of everything so that you can avoid such issues as this one. Just not a habit I forced on myself in my earlier days of coding. But I do intend to be more diligent in my rebuild. It really isn't an issue till you run into something which is hardcoded in the EXE or another DLL.
__________________
Fall from Heaven: - Random Stories and Fragments - Trivia Thread - The Complete FfH Manual - Lore Compendium - The Erebus Project - #erebus - The Mega Story General Information: Mod Details, World Information Resource, Easter Eggs, Quick-Guide, Empyrean/Esus & Guilds Information, The Other Religions, Mana Chart, Religous ThemesSpecific Details: FfH Wikia, FfH Wiki, FF Wiki, World Spells, FoL Guide, Council of Esus Guide, Magic Comparison, Potential Fix for MAF issues |
|
|
|
|
|
#10 |
|
Deity
Join Date: Sep 2008
Posts: 4,284
|
For some reason, I thought I had to put my new widget in the same order as the pedia. I guess there's really few cases in which order do matter
|
|
|
|
|
|
#11 |
|
Deity
|
Order is only really important for the hardcode/xml hybrid systems, like GameOptions. Things that are listed completely in the SDK, but also exist in the XML. Since the XML is loaded in order, that is how it tries to match up.
__________________
Fall from Heaven: - Random Stories and Fragments - Trivia Thread - The Complete FfH Manual - Lore Compendium - The Erebus Project - #erebus - The Mega Story General Information: Mod Details, World Information Resource, Easter Eggs, Quick-Guide, Empyrean/Esus & Guilds Information, The Other Religions, Mana Chart, Religous ThemesSpecific Details: FfH Wikia, FfH Wiki, FF Wiki, World Spells, FoL Guide, Council of Esus Guide, Magic Comparison, Potential Fix for MAF issues |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NEVER MIND- I discovered my error ---Uranium under city - cannot access! | Saint Sarai | Civ4 - General Discussions | 9 | Aug 17, 2007 01:08 PM |
| Civ 3 - Access error | krizzel | Civ3 - Technical Support | 3 | Feb 26, 2006 06:39 PM |
| RuntimeError: Access violation - no RTTI data! | ingvild | Civ4 - Technical Support | 1 | Nov 15, 2005 07:54 AM |
| error message: i need help=cant access mutiplayer | capnahdharr | Civ3 - Technical Support | 3 | Feb 13, 2005 06:21 PM |
| c0000005 (access violation) | NDSN | Civ3 - Technical Support | 1 | Sep 29, 2003 03:57 AM |