Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Call To Power II > CtP2-Source Code Project > COMPILE: Getting really frustrated with crash
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread   
Pages (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 04-11-2003 21:22
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Getting really frustrated with crash Support Apolyton buy from Amazon

I complied the stuff and had it working... kind of... yesterday. It was crashing at end of turn.

I did a fresh install of the code and game, and now it crashes at the point of starting a new game, just as the map is started to be displayed. I made a version with debug info, and the damn debugger crashes... :/

Sound works up until it crashes. The regular off the CD version works ok.

I'm running XP.

I just put the new miles.h and miles.lib in the appropriate directories, fixed a couple of warnings in debugcallstack.cpp (unused local var defs - moved inside #ifdndefs)

What OS are the people who got the miles.h and miles32.dll to work, running?

Anyone else having similar problems?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 04-11-2003 22:40 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton buy from Amazon

I had a similar problem, I did some changes and every build after these changes crashed when I wanted to start a new game. Finally I deleted all the precompiled files and compiled the whole project again and it did work. I gues it was some sort of a linker problem.

-Martin

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 04-11-2003 23:01 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton or Terrorists Win

I have the same problem as well, but can't solve it either, Martin's solution doesn't work for me. Solver has the same problem as well, we've been discussing it over ICQ but can't figure it out. Very frustrating indeed

DDowell is offline DDowell
Chieftain
Västerås, Sweden
Nov 2001
time: 06:31
  Old Post 04-11-2003 23:11
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Me too! It is hopeless! And it is occuring in all builds (althoug in the debug build it at least says where the error occurs... it is those bloody assert-lines that just keep on failing).

Frustrating is the word alright.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 04-11-2003 23:11 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Help yourself to an AD-FREE life

It seems to be a different problem then. OK we should now answer the OS question. My is Win 98. And maybe also the compiler question: My is VC++ 6.0 the so called authors edition, with some shareware like features. but better then nothing.

-Martin

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 04-11-2003 23:30
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton

I have Visual Studio 6 Enterprise Edition. I installed and patched to SP5.

DirectX 9.0b (debug) and DirectMedia 6.0

Windows XP Pro. SP1. (not checked build)

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 04-11-2003 23:52 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Suffering from ads?

I should have DirectX 8.0 or 8.1 installed. I wasn't able to compile the game with DirectX 7.0a. But as far as I know Mr Ogre used DirectX 9.X.

-Martin

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 04-11-2003 23:54
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Yes, but I think he did something different than that mss.h stub. He did stubs in other files instead, and removed mss.h and mss32.lib.

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 05-11-2003 00:00
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Ok... I am in the process of compiling completely fresh. When I'm done, I'll see if I can try it on a system other than XP... although its a bit of a pain in the ass, and its a big problem to not have this working on XP.

XP has gotten to be a bit of a standard nowdays.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 05-11-2003 04:54 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Lose 30 kilos (of popups)

Mine seems to be working perfectly, including the sound which I've just compiled in.

I'll try to list everything that might differ from my setup to yours:

Windows XP Home, latest SP (I think it's SP 1).

VC++ 6.0 SP5 (I think it's enterprise, but it might be professional).

DX 9.0b, Summer 2003 release

I copied the whole DXMedia folder into the libs directory like Mr Ogre, even though he said it was probably unnecessary. I think this might be crucial.

I am always using the final build (The debug build takes more than 5 minutes to start, and I can't wait that long).

I added #include <multimon.h> to display.h. I did that because it was necessary on an earlier build even though I didn't need it on the later ones.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 05-11-2003 06:41 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Well, I have pretty much the same setup as John, except that I don't think I have any kind of SP for VC++ (I have Enterprise) I too copied the library files (which was necessary because without that it wouldn't link them).

I didn't include mulitmon.h, but adding it doesn't seem to make a difference (I'm now trying it again on a clean build, I'll let you know if that does work -- but don't count on it).

The strange thing is, the debug build doesn't take nearly as long to start for me as for John, I don't really notice any significant differences with the other builds.

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 05-11-2003 17:04
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Enter the AD-FREE zone

OK. Done EXACTLY as John has said (from a fresh start), and bang.... Crash. (at the point of the map being displayed when starting a new game.)

Now, this means that there is somehow some difference in the compiled file.

To verify that we (Locutus, me, whoever else) need to try out that exe that John has.

If that works, then we need to find out what John did that we didn't.

I believe that the uninstaller won't delete modified files... so here is my idea:

*Copy the directory to another location.

*Uninstall the CTP Source, using the unwise exe.

*Delete the compiled exe's, the maps and the contents of the final and debug directories.

*Zip/Rar whats left up. That should leave just whichever source files are different from those, as produced that work, plus whichever libs work.

Locutus and myself should be able to figure out what the problem is by testing/comparing those.

Thoughts?

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 05-11-2003 19:04 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by Locutus
I too copied the library files (which was necessary because without that it wouldn't link them).


The point is that I copied all the CXmedia files, not just the library files.

quote:
I didn't include mulitmon.h, but adding it doesn't seem to make a difference (I'm now trying it again on a clean build, I'll let you know if that does work -- but don't count on it).


I also doubt this will make a difference, but such doubts have been proved wrong in the past.

quote:
The strange thing is, the debug build doesn't take nearly as long to start for me as for John, I don't really notice any significant differences with the other builds.


That is indeed strange. What processor are you using? Mine is a 1.6GHz Intel P4. I would say that the slowness is due to my shortage of RAM causing disk-swapping, but during the loading the hard disk is not being accessed, so it can only really be due to the processor, or possibly I have slow memory...

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 05-11-2003 19:08 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by MrBaggins
To verify that we (Locutus, me, whoever else) need to try out that exe that John has.


I can't email it, and I can't fit it in the Apolyton upload area anywhere. I also need to slap "This material is not made or supported by Activision" onto the startup screen somewhere if I'm going to distribute it .

quote:
If that works, then we need to find out what John did that we didn't.

I believe that the uninstaller won't delete modified files... so here is my idea:

*Copy the directory to another location.

*Uninstall the CTP Source, using the unwise exe.

*Delete the compiled exe's, the maps and the contents of the final and debug directories.

*Zip/Rar whats left up. That should leave just whichever source files are different from those, as produced that work, plus whichever libs work.

Locutus and myself should be able to figure out what the problem is by testing/comparing those.

Thoughts?


It mightbe easier to use diff - but I'm not sure exactly how diff handles multiple directories, if at all. Fortunately I have cygwin installed so I can go find the man pages...

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 05-11-2003 19:10 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by J Bytheway
I can't email it, and I can't fit it in the Apolyton upload area anywhere.


Actually I can if I zip it up. Silly me .

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 05-11-2003 19:35
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Isn't that a tiff or something (the startup screen?)

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 05-11-2003 19:41 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by MrBaggins
Isn't that a tiff or something (the startup screen?)


Probably. The easiest way to put it in the exe is by adding something like:

code:
c3_error("Disclaimer", "This material...")
into the main function so that it pops up a dialog.

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 05-11-2003 19:46
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Ok. Important to figure out too, since we will be producing (soon I hope) code thats going to need to be playtested...

We will need a method to fulfill the license agreement, and a place to upload the .exe

Locutus? How do you think we should handle this?

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 05-11-2003 22:15
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

My setup information:
Windows 2000 Professional, SP 4
DirectX 9.0, libraries copied to ctp2_code\libs\directx
DXMedia 6.0, libraries copied to ctp2_code\libs\dxmedia
Visual Studio Professional 6.0, SP 5
Original sources, except for the following modifications:
- source from the "Altered source files" thread (except for mss.h)
- Miles interface from the "Success with the sound" thread, placed in ctp2_code\libs\miles
PC without sound card

The debug, release, and final versions all work for me. I even got the debug version to work in the debugger, by setting the program arguments to "nonexclusive" (without the quotes). After the black screen comes up, operating the mouse is awkward, but that is to be expected. Unfortunately, I don't have a second monitor to try the "multimon" option.

With the debug version, I do get the occasional assert pop-up, but selecting Ignore will return me to the game.

As I don't have a sound card, the first call to AIL_quick_startup will always return 0 (QSTAT_ERROR), which will cause m_noSound to be set. I did some simulation by modifying the variable in the debugger, and successfully called and returned from subsequent Miles functions, but the results is probably not representative any more.

Can someone attempt to run the debugger and report the results of the AIL_redbook_status and AIL_quick_status calls with a sound card? It could be that the values for the QSTAT_DONE and the various REDBOOK_... constants are incorrect. The same holds for the value of AIL_QUICK_USE_WAVEOUT.

DDowell: what is the message you got in the assert pop-up?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 05-11-2003 22:47 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Increase the size of your Attachments

A bit of topic perhaps (I'll put it in the FAQ later), but as for the fulfilling the license agreement, we have two situations:

1) Files that contains (sections of) the source code. Only people who've agreed to the EULA are allowed to have access to these. To make sure of that, we created a little script: if you put any source code files available for download, make sure the URL has the format http://apolyton.net/csd.php?{url}, where {url} is the actual URL of the file (Example: http://apolyton.net/csd.php?http://...CTP2_Source.exe -- check your status bar or right-click and select Properties to see the address (ignore the apolyton.net/go.php part); click the link to see the effect).

2) Actual executables to run the game. These indeed require the warning that they're not Activision material and author & email info. At least for the Apolyton project we can simly use 'Apolyton' or 'Apolyton CtP2 Source Code Project' or similar as author, and for email address we can use ctp2source@apolyton.net (we created that address for this purpose). As for where to put it, I guess an error message as John suggests would work nicely, though I was originally thinking of replacing the tga file itself with a photoshopped version.

Alternatively, there's a string indicating a version number in the bottom right corner of the start up screen on the patched version (it says something like 'v1.1'), maybe we could find this string and replace it with our own text (assuming that works in the unpatched version)? I looked it up once and IIRC it should be in the text files somewhere (don't ask me where though)...

Anyway, I'm at work now so can't help with troubleshooting right now...

Last edited by Locutus on 06-11-2003 at 00:07

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 06-11-2003 03:03 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton

How's the following message:

THIS MATERIAL IS NOT MADE OR SUPPORTED BY ACTIVISION.
This version of the Call To Power 2
executable developed at apolyton.net
Contact the authors at ctp2source@apolyton.net

In the long run I was thinking we should replace the intro movie, because I don't think Activision want their name quite so prominent at the start. I'm sure we could work the disclaimer into the movie in an amusing way .

Also, I presume we'll be adding some sort of 'about box' to the main menu.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 06-11-2003 03:09 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton buy from Amazon

Here it is as a messagebox (I actually had to add a new kind of messagebox because the existing ones were all using the error icon).

Attachment: disclaimer.png
This has been downloaded 152 time(s).

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 06-11-2003 03:21
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

looks great

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 06-11-2003 03:23 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Full PM-box? Change here!

Try the version at:
http://apolyton.net/upload/files/J%20Bytheway/Ctp2.zip

I've just compiled it and it's working fine for me.

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 06-11-2003 03:37
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Gottit. It works like a prince. End turn... plus sound. Thanks J.

OK... now we just need to figure out what you've done differently...

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 06-11-2003 05:26 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton, buy Civilization 2

Dammit, you beat me to it...

I went the Photoshop way...

To use, put http://ctp2files.apolyton.net/source/upsg001.tga in the ctp2_data/default/gamedata/graphics/pictures folder.

I guess people can use whatever they prefer (or both). I guess my solution has the advantage of being less 'disruptive'... (The actual file looks better than this low-quality jpg BTW)

Attachment: upsg001.jpg
This has been downloaded 148 time(s).

Last edited by Locutus on 06-11-2003 at 05:51

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 06-11-2003 13:39 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Call to Power 2

The problem with that is that it's not actually in the executable, and so you must either tell people to put it in the right place (and they won't bother) or else package it up in a zip with directories (which is too much bother for me ).

However, when we're releasing more UI mods, I guess it will be a much better solution.

Asmodean is offline Asmodean
King
Aarhus, Denmark
Aug 1999
time: 06:31
  Old Post 06-11-2003 13:55 Visit Asmodean's homepage!
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Full PM-box? Change here!

So John...what you have now is actually a modified version of the game, WORKING, with sound and no crashes??

Asmodean

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 06-11-2003 16:58
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Yes, he does. Well... it works for me, anyway.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 06-11-2003 19:17 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Support Apolyton or Terrorists Win

Yep, it seems to be the same as the unpatched original in every way except for the fix to the rush buy bug, and also the disclaimer dialog I've added. I haven't added Martin's other fixes.

At present I'm working on the PBEM bug, but when I want to take a break from that I'll investigate what I can do with diff to make my exact changes clear.

 
Pages (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0723 seconds (91.80% PHP - 8.20% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net