View Full Version : SDK for Second Rev


Dale
Oct 17, 2006, 04:48 AM
Hi guys.

I've opened this thread to move the SDK discussion out of the main discussion thread. :)

I'll integrate the SDK components you want and compile them for you, no problems at all. I'm assuming this is for Warlords?

Anyways, what I need is a comprehensive list of all the bits you want that have SDK parts so I can combine them all together into one DLL.

The SDK List:
- DCM Ranged Bombardment
- DCM Missiles
- The Lopez Snipers

----------------------------------------------------------------

Original post from main discussion thread:


Python :
The Gir's Partisans mod is integrated. I have not yet suppressed the promotions. Actually it runs. I'll work on desabling promotions this evening...
International events we talk about yesterday. I'll purpose you something constructed in a few days... I have to think about that before, search some ideas...

SDK :
It's the first time I try something like that. :crazyeye: When I compile Dale's mod (with only Ranged Field Bombardment and Missiles enabled), I have a syntax error. :( Of course, I don't know why !

I sent a PM to Dale, I hope he'll help me.

Mixed SDK + Python :
The TheLopez's Sniper mod contains python and SDK elements. I'll have a look as soon as possible to understand how to modify files to suppress building and promotions element. Hope I'll find...
Problem : will I be able to mix TheLopez code and Dale's code ? No, I won't !! Like I did it yesterday, if I just have to move files and compile, and that no problem occurs, it'll be good. But if there is any problem, I will be out :confused:


Garret, don't you think we should open a new thread about modpacks integration, SDK and Python work ? All about this is written here, and this thread becomes big...

Dale
Oct 17, 2006, 04:51 AM
Fabrysse:

After working with Firaxis on Civ4/Warlords I know the code pretty well. So if you concentrate on the python I'll do the DLL stuff. That cool?

Also, since I use the same environment and project settings as Firaxis, I get a cleaner, smaller DLL than code blocks does.

Fabrysse
Oct 17, 2006, 05:13 AM
I'll integrate the SDK components you want and compile them for you, no problems at all. I'm assuming this is for Warlords?

The SDK List:
- DCM Ranged Bombardment
- DCM Missiles
- The Lopez Snipers

That's a good new !!! Thanks a lot, Dale.

Yes, it's for Warlords.
SDK list : that's it.


Fabrysse: if you concentrate on the python I'll do the DLL stuff. That cool?

OK. Again, thanks a lot for replacing me with SDK where I can't understand anything.

Fabrysse
Oct 17, 2006, 05:49 AM
Dale, I'll wait for your DLL before working on TheLopez Snipers python code. So that I can test my modifications.

GarretSidzaka
Oct 17, 2006, 03:10 PM
looking really great guys!

Dale
Oct 20, 2006, 05:06 AM
I'll be looking at the sdk stuff this weekend, so hopefully have a dll for you by monday. :)

GarretSidzaka
Oct 20, 2006, 12:30 PM
yeah, make sure you get the download
http://www.3ddownloads.com/Strategy/Civilization 4/Mods/Second Revolution/Second Revolution 2.0 alpha.7z

Dale
Oct 23, 2006, 05:01 PM
Must apologise for the delay in getting this out. I had thought that TheLopez had already converted snipers into Warlords. Unfortunately he hadn't and I had to cut his code into a clean Warlords SDK base. Also, with the changes to the way some things function inside the SDK in Warlords I had to modify a few things in his code for it to function correctly. When I say modify, I mean things like new function names and #defines.

Anyways, at this point the sniper code is live. For everyone's benefit at CFC I uploaded that DLL file with snipers only up on the download database. Now to add in ranged bombarding and missiles.

Dale

Fabrysse
Oct 24, 2006, 01:25 AM
Anyways, at this point the sniper code is live. For everyone's benefit at CFC I uploaded that DLL file with snipers only up on the download database. Now to add in ranged bombarding and missiles.

:goodjob:
Hope it'll go easy, now...

GarretSidzaka
Oct 24, 2006, 03:02 AM
good luck Dale! you are mighty and strong! Like Bull!

Dale
Oct 24, 2006, 08:50 AM
Woot! It's done. :)

It's clean and shiny and new. There's snipers, ranged bombardment and missiles in this DLL file, none of the other (buggy) components of mine. :)

http://users.g-node.com.au/thesdale/assets.zip

BTW, you'll notice in the zip are the required XML changes. Unless you've added your own interface, just copy the interfaces xml file directly in. Also, in the unitmissions xml file only MISSION_BOMBARD has changed. It's important you make the change in the scenarios mission file or ranged bombardment doesn't work. The unit schema has the two xml tags required for bombardment and missiles, but doesn't contain the sniper tags. You'll have to add them in. The last file in the zip is the unit classes xml. It shows how I defined the missile classes. I suggest following that method for yours.

Finally, in CvUnitInfos.xml if you want a unit to have ranged bombardment, add the tag <iDCMBombRange>value</iDCMBombRange> and the end of the unit. The value is the distance in tiles you want to allow this unit to bomb. If you want a unit to be a missile, then add the tag <bDCMMissile>1</bDCMMissile> to the unit.

Dale

Fabrysse
Oct 25, 2006, 01:39 AM
Woot! It's done. :)
It's clean and shiny and new. There's snipers, ranged bombardment and missiles in this DLL file, none of the other (buggy) components of mine. :)
http://users.g-node.com.au/thesdale/assets.zip

Great !!!! :goodjob:
I download right now. I'll have a big nigth with integrating sniper's python, and make it runs... Hope I'll have it tomorrow... Not sure.

BTW, you'll notice in the zip are the required XML changes. Unless you've added your own interface, just copy the interfaces xml file directly in. Also, in the unitmissions xml file only MISSION_BOMBARD has changed. It's important you make the change in the scenarios mission file or ranged bombardment doesn't work. The unit schema has the two xml tags required for bombardment and missiles, but doesn't contain the sniper tags. You'll have to add them in. The last file in the zip is the unit classes xml. It shows how I defined the missile classes. I suggest following that method for yours.

Finally, in CvUnitInfos.xml if you want a unit to have ranged bombardment, add the tag <iDCMBombRange>value</iDCMBombRange> and the end of the unit. The value is the distance in tiles you want to allow this unit to bomb. If you want a unit to be a missile, then add the tag <bDCMMissile>1</bDCMMissile> to the unit.

Dale

Garret, we have to work together on that, and to know what does each other.
This evening (and probably a part of the night;) ), I'll have to add these xml elements to the alpha you sent me last week.
I suppose you added new things since saterday... So it'd be good you upload me a new version of xml files. Thus, I'll add and test sniper elements on the later alpha version.

Why is it urgent ?
I'll be online today and tomorrow, I'll be offline on friday 27/10, saterday 28/10, sunday 29/10, online on monday 30/10, offline on tuesday 31/10 and wednesday 01/11 and online after like usual (not by the week-end)...

GarretSidzaka
Oct 25, 2006, 01:47 AM
hold on fabrysse
http://s19.quicksharing.com/v/4788110/Second_Revolution_2.0_alpha.7z.html

this is the update that is going to dale. take it too! this version has bombard, and needs sniper integration, and missile intergration (i tried missile and couldnt, and i havent even gotten to sniper)

go get it, :) i just uploaded it minutes ago :goodjob:

Fabrysse
Oct 25, 2006, 01:53 AM
OK. Downloading now. I'll add the more I can now, at work (don't tell it to my boss ! ;) ) and I'll test tonight.
Does it crash actually with no missile running or just missile doesn't run ?

GarretSidzaka
Oct 25, 2006, 02:00 AM
no it doesnt crash, it just has no action button to make the missile "shoot" and i have no idea what kind of unitinfo to give to the cruise missile, the nukemissile is basically a ICBM with the missile tag added.

the ranged bombard works. the partisan dropped a shitload of people when i captured New York City, so that workds. can you make the damage that is applied to invading forces higher and more consistant?

hope you like the new menusong!

Fabrysse
Oct 25, 2006, 02:16 AM
can you make the damage that is applied to invading forces higher and more consistant?
I can. How much more would you like ?

hope you like the new menusong!
Still downloading... It comes through Atlantic swimming, I suppose.:lol:

GarretSidzaka
Oct 25, 2006, 02:23 AM
i would like to see that every unit that enters the city is bombed on the way through the gates. i want the unit that enters the city to be devastated, even if it was a future tank killing a protester. and i want this to happen every time basically! :D the spoils of war are a cold tart dish.

well, it must be faster than flying. atlanta to frankfurt takes all day!

Fabrysse
Oct 25, 2006, 02:54 AM
i would like to see that every unit that enters the city is bombed on the way through the gates. i want the unit that enters the city to be devastated, even if it was a future tank killing a protester. and i want this to happen every time basically! :D the spoils of war are a cold tart dish.
OK, understood. I'll try something like that.

well, it must be faster than flying. atlanta to frankfurt takes all day!
It's done.

EDIT : The new menu song is good. Not instrumental, but good.

Dale
Oct 25, 2006, 05:50 AM
Okay the missus let me off the hook as she went to bed. :D

I'll get the missiles running tonight and upload the changed files. I can do this in my sleep so it's easier for me to do it. :)

As for sniper, I'll let Fabrysse take that one as he's probably already started it by now.

Fabrysse
Oct 25, 2006, 06:11 AM
As for sniper, I'll let Fabrysse take that one as he's probably already started it by now.
I have begun. But I'm at work now, so I can't test. I'll test tonight. Hope it'll be good... :badcomp: But I'm not sure to sleep a lot this night !
Some news tomorrow :sleep:

GarretSidzaka
Oct 25, 2006, 01:04 PM
excellent!!! thank you guys for putting in the late nights!

Fabrysse
Oct 26, 2006, 02:02 AM
:( That doesn't run.

Several problems :

XML alerts at loading :
Tag: UNITAI_GENERAL in Info class was incorrect
Current XML file is: Units/CIV4UnitInfos.xml
I didn't search anything about that... It appears twice.
Sniper Mod :

I don't have the "Take shot" icon at the bottom of the screen, just the "Harass unit" icon... I can't find anything about these 2 icons in python scripts. Is it a DLL problem ?
I have some errors in the logs, but I don't know if it's python errors or DLL errors...

PythonErr.log :
Traceback (most recent call last):

File "CvEventInterface", line 25, in onEvent

File "CvCustomEventManager", line 131, in handleEvent

File "CvCustomEventManager", line 142, in _handleDefaultEvent

File "CvSecondRevolutionEventManager", line 376, in onUnitSelected

AttributeError: CvGameUtils instance has no attribute 'setCurrentSniper'
ERR: Python function onEvent failed, module CvEventInterface
Traceback (most recent call last):

File "CvEventInterface", line 25, in onEvent

File "CvCustomEventManager", line 131, in handleEvent

File "CvCustomEventManager", line 142, in _handleDefaultEvent

File "CvSecondRevolutionEventManager", line 270, in onUpdate

AttributeError: CvGameUtils instance has no attribute 'isTakeShotEnabled'
ERR: Python function onEvent failed, module CvEventInterface

(This second "block" (no attribute 'isTakeShotEnabled') appears a lot of times in the log file. I just paste one here.

PythonDbg.log :
Initializing Python
1. Using Python sys path: ASSETS\PYTHON\SYSTEM\email
2. Using Python sys path: ASSETS\PYTHON\SYSTEM\encodings
3. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx
4. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\build
5. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib
6. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale
7. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\py
8. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\tools
9. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib\colourchooser
10. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib\editor
11. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib\floatcanvas
12. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib\masked
13. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib\mixins
14. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\lib\ogl
15. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\af
16. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\ca
17. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\cs
18. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\da
19. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\de
20. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\el
21. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\es
22. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\eu
23. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\fi
24. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\fr
25. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\hi
26. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\hu
27. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\id
28. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\it
29. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\ja
30. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\lv
31. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\nb
32. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\nl
33. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\pl
34. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\pt_BR
35. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\ru
36. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\sl
37. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\sv
38. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\tr
39. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\uk
40. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\zh_CN
41. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\zh_TW
42. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\af\LC_MESSAGES
43. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\ca\LC_MESSAGES
44. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\cs\LC_MESSAGES
45. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\da\LC_MESSAGES
46. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\de\LC_MESSAGES
47. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\el\LC_MESSAGES
48. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\es\LC_MESSAGES
49. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\eu\LC_MESSAGES
50. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\fi\LC_MESSAGES
51. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\fr\LC_MESSAGES
52. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\hi\LC_MESSAGES
53. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\hu\LC_MESSAGES
54. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\id\LC_MESSAGES
55. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\it\LC_MESSAGES
56. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\ja\LC_MESSAGES
57. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\lv\LC_MESSAGES
58. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\nb\LC_MESSAGES
59. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\nl\LC_MESSAGES
60. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\pl\LC_MESSAGES
61. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\pt_BR\LC_MESSAGES
62. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\ru\LC_MESSAGES
63. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\sl\LC_MESSAGES
64. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\sv\LC_MESSAGES
65. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\tr\LC_MESSAGES
66. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\uk\LC_MESSAGES
67. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\zh_CN\LC_MESSAGES
68. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\locale\zh_TW\LC_MESSAGES
69. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\py\tests
70. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\tools\XRCed
71. Using Python sys path: ASSETS\PYTHON\SYSTEM\wx\tools\XRCed\src-images
72. Using Python sys path: ASSETS\PYTHON\SYSTEM
sys.path =

['ASSETS\\PYTHON\\SYSTEM\\email', 'ASSETS\\PYTHON\\SYSTEM\\encodings', 'ASSETS\\PYTHON\\SYSTEM\\wx', 'ASSETS\\PYTHON\\SYSTEM\\wx\\build', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale', 'ASSETS\\PYTHON\\SYSTEM\\wx\\py', 'ASSETS\\PYTHON\\SYSTEM\\wx\\tools', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\colourchooser', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\editor', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\floatcanvas', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\masked', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\mixins', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\ogl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MES SAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MES SAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MES SAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\py\\tests', 'ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed', 'ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed\\src-images', 'ASSETS\\PYTHON\\SYSTEM']


sys.modules =

{'zipimport': <module 'zipimport' (built-in)>, 'signal': <module 'signal' (built-in)>, '__builtin__': <module '__builtin__' (built-in)>, 'sys': <module 'sys' (built-in)>, '__main__': <module '__main__' (built-in)>, 'exceptions': <module 'exceptions' (built-in)>, 'CvPythonExtensions': <module 'CvPythonExtensions' (built-in)>}


sys.builtin_module_names =

('CvPythonExtensions', '__builtin__', '__main__', '_bisect', '_codecs', '_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw', '_csv', '_heapq', '_hotshot', '_locale', '_multibytecodec', '_random', '_sre', '_subprocess', '_symtable', '_weakref', '_winreg', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'md5', 'mmap', 'msvcrt', 'nt', 'operator', 'parser', 'regex', 'rgbimg', 'sha', 'signal', 'strop', 'struct', 'sys', 'thread', 'time', 'xxsubtype', 'zipimport')

1. Using moduleSearchDirs: python\entrypoints\
2. Using moduleSearchDirs: python\screens\
3. Using moduleSearchDirs: python\sniperutils\
4. Using moduleSearchDirs: python\secondrevolutionutils\
5. Using moduleSearchDirs: python\thelopezutils\
6. Using moduleSearchDirs: python\iniparser\
7. Using moduleSearchDirs: python\
8. Using moduleSearchDirs: python\pitboss\
9. Using moduleSearchDirs: python\pywb\
10. Using moduleSearchDirs: python\pyhelper\
11. Using moduleSearchDirs: python\pyunit\
12. Using moduleSearchDirs: python\_debugtools\
13. Using moduleSearchDirs:
EntryPoint module:cvscreensinterface
EntryPoint module:cveventinterface
EntryPoint module:cvabinterface
EntryPoint module:cvwbinterface
EntryPoint module:cvgameinterfacefile
EntryPoint module:cvmapscriptinterface
EntryPoint module:cvtranslator
EntryPoint module:cvoptionsscreencallbackinterface
EntryPoint module:cvgameinterface
EntryPoint module:cvappinterface
EntryPoint module:islands
EntryPoint module:great_plains
EntryPoint module:continents
EntryPoint module:fantasy_realm
EntryPoint module:archipelago
EntryPoint module:wheel
EntryPoint module:terra
EntryPoint module:lakes
EntryPoint module:tilted_axis
EntryPoint module:inland_sea
EntryPoint module:mirror
EntryPoint module:fractal
EntryPoint module:oasis
EntryPoint module:pangaea
EntryPoint module:hub
EntryPoint module:balanced
EntryPoint module:maze
EntryPoint module:custom_continents
EntryPoint module:shuffle
EntryPoint module:ring
EntryPoint module:team_battleground
EntryPoint module:highlands
EntryPoint module:cvunitcontrolinterface
EntryPoint module:cvdiplomacyinterface
EntryPoint module:cvdebuginterface
EntryPoint module:cvpopupinterface
EntryPoint module:cvscreenutilsinterface
EntryPoint module:pbmain
EntryPoint module:ice_age
load_module CvEventInterface

load_module CvUtil

load_module traceback

load_module CvCustomEventManager

load_module CvEventManager

load_module CvScreensInterface

load_module CvMainInterface

load_module ScreenInput

load_module CvScreenEnums

load_module time

load_module CvDomesticAdvisor

load_module PyHelpers

load_module CvTechChooser

load_module CvForeignAdvisor

load_module math

load_module CvMilitaryAdvisor

load_module re

load_module CvFinanceAdvisor

load_module CvReligionScreen

load_module CvCivicsScreen

load_module string

load_module CvVictoryScreen

load_module CvOptionsScreen

load_module CvReplayScreen

load_module CvHallOfFameScreen

load_module CvDanQuayle

load_module CvGameUtils

load_module CvUnVictoryScreen

load_module CvDawnOfMan

load_module CvTechSplashScreen

load_module CvTopCivs

load_module random

load_module CvInfoScreen

load_module CvIntroMovieScreen

load_module CvVictoryMovieScreen

load_module CvWonderMovieScreen

load_module CvEraMovieScreen

load_module CvPediaMain

load_module CvPediaScreen

load_module CvScreen

load_module CvPediaTech

load_module CvPediaUnit

load_module CvPediaBuilding

load_module CvPediaPromotion

load_module CvConfigParser

load_module ConfigParser

load_module CvPath

load_module _winreg

load_module CvModName

load_module CvPediaUnitChart

load_module CvPediaBonus

load_module CvPediaTerrain

load_module CvPediaFeature

load_module CvPediaImprovement

load_module CvPediaCivic

load_module CvPediaCivilization

load_module CvPediaLeader

load_module CvPediaSpecialist

load_module CvPediaHistory

load_module CvPediaProject

load_module CvPediaReligion

load_module CvWorldBuilderScreen

load_module Popup

load_module CvWorldBuilderDiplomacyScreen

load_module CvDebugTools

load_module CvDebugInfoScreen

load_module CvMapGeneratorUtil

load_module CvGFCScreen

load_module CvPopupInterface

load_module CvScreenUtilsInterface

load_module CvScreenUtils

load_module CvWBPopups

load_module CvCameraControls

load_module CvAdvisorUtils

load_module CvSecondRevolutionEventManager

load_module pickle

load_module CvTranslator

load_module TheLopezUtils

load_module SniperUtils

load_module SdToolKit

load_module cPickle

load_module CityUtils

load_module CvGameInterface

load_module CvGameInterfaceFile

load_module CvSniperModGameUtils

load_module Partisan

PY:OnInit
load_module CvAppInterface

load_module Archipelago

load_module Balanced

load_module Continents

load_module Custom_Continents

load_module Fantasy_Realm

load_module Fractal

load_module Great_Plains

load_module Highlands

load_module Hub

load_module Ice_Age

load_module Inland_Sea

load_module Islands

load_module Lakes

load_module Maze

load_module Mirror

load_module Oasis

load_module Pangaea

load_module Ring

load_module Shuffle

load_module Team_Battleground

load_module Terra

load_module Tilted_Axis

load_module Wheel

PY:Player 0's alive status set to: 1
PY:Player 1's alive status set to: 1
PY:Player 2's alive status set to: 1
PY:Player 3's alive status set to: 1
PY:Player 4's alive status set to: 1
PY:Player 5's alive status set to: 1
PY:Player 18's alive status set to: 1
99 SCREEN TURNED ON

SCREEN OFF

load_module encodings

load_module encodings.latin_1

8500 - gold

8501 - research

8502 - culture

8483 - food

8484 - production

8485 - commerce

8525 - anarchism

8526 - anarchism

8527 - autonomism

8528 - autonomism

8529 - neo-liberalism

8530 - neo-liberalism

8531 - nationalism

8532 - nationalism

8533 - communism

8534 - communism

8535 - conservatism

8536 - conservatism

3 SCREEN TURNED ON

99 SCREEN TURNED ON

load_module CvWBInterface

load_module CvWBDesc

load_module array

PY:saveDesc:C:\Documents and Settings\Fabrysse.FABRYSSE-PC\Mes documents\My Games\Warlords\Saves\WorldBuilder\WBQuickSave, curDir:C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Warlords
WBSave done

PY:OnPreSave
load_module CvABInterface

2 SCREEN TURNED ON

SCREEN OFF

23 SCREEN TURNED ON

WB brush selected, iList=0, iIndex=0, type=1

onMouseEvent

1

WB brush selected, iList=0, iIndex=0, type=1

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

WB brush selected, iList=0, iIndex=37, type=0

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

WB brush selected, iList=0, iIndex=50, type=0

onMouseEvent

1

PY:Mod Data Initialized : SniperMod True
onMouseEvent

1

onMouseEvent

1

WB brush selected, iList=0, iIndex=51, type=0

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

WB brush selected, iList=0, iIndex=33, type=0

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

onMouseEvent

1

24 SCREEN TURNED ON

PY:saveDesc:C:\Documents and Settings\Fabrysse.FABRYSSE-PC\Mes documents\My Games\Warlords\Saves\WorldBuilder\SniperTest2, curDir:C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Warlords
WBSave done

onMouseEvent

1

onMouseEvent

1

PY:OnUnInit
UnInit Python


PythonErr2.log :
sys.path = ['ASSETS\\PYTHON\\SYSTEM\\email', 'ASSETS\\PYTHON\\SYSTEM\\encodings', 'ASSETS\\PYTHON\\SYSTEM\\wx', 'ASSETS\\PYTHON\\SYSTEM\\wx\\build', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale', 'ASSETS\\PYTHON\\SYSTEM\\wx\\py', 'ASSETS\\PYTHON\\SYSTEM\\wx\\tools', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\colourchooser', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\editor', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\floatcanvas', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\masked', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\mixins', 'ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\ogl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MES SAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAG ES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MES SAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MES SAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\py\\tests', 'ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed', 'ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed\\src-images', 'ASSETS\\PYTHON\\SYSTEM']

sys.modules = {'zipimport': <module 'zipimport' (built-in)>, 'signal': <module 'signal' (built-in)>, '__builtin__': <module '__builtin__' (built-in)>, 'sys': <module 'sys' (built-in)>, '__main__': <module '__main__' (built-in)>, 'exceptions': <module 'exceptions' (built-in)>, 'CvPythonExtensions': <module 'CvPythonExtensions' (built-in)>}

sys.builtin_module_names = ('CvPythonExtensions', '__builtin__', '__main__', '_bisect', '_codecs', '_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw', '_csv', '_heapq', '_hotshot', '_locale', '_multibytecodec', '_random', '_sre', '_subprocess', '_symtable', '_weakref', '_winreg', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'md5', 'mmap', 'msvcrt', 'nt', 'operator', 'parser', 'regex', 'rgbimg', 'sha', 'signal', 'strop', 'struct', 'sys', 'thread', 'time', 'xxsubtype', 'zipimport')
load_module CvEventInterface
load_module CvUtil
load_module traceback
load_module CvCustomEventManager
load_module CvEventManager
load_module CvScreensInterface
load_module CvMainInterface
load_module ScreenInput
load_module CvScreenEnums
load_module time
load_module CvDomesticAdvisor
load_module PyHelpers
load_module CvTechChooser
load_module CvForeignAdvisor
load_module math
load_module CvMilitaryAdvisor
load_module re
load_module CvFinanceAdvisor
load_module CvReligionScreen
load_module CvCivicsScreen
load_module string
load_module CvVictoryScreen
load_module CvOptionsScreen
load_module CvReplayScreen
load_module CvHallOfFameScreen
load_module CvDanQuayle
load_module CvGameUtils
load_module CvUnVictoryScreen
load_module CvDawnOfMan
load_module CvTechSplashScreen
load_module CvTopCivs
load_module random
load_module CvInfoScreen
load_module CvIntroMovieScreen
load_module CvVictoryMovieScreen
load_module CvWonderMovieScreen
load_module CvEraMovieScreen
load_module CvPediaMain
load_module CvPediaScreen
load_module CvScreen
load_module CvPediaTech
load_module CvPediaUnit
load_module CvPediaBuilding
load_module CvPediaPromotion
load_module CvConfigParser
load_module ConfigParser
load_module CvPath
load_module _winreg
load_module CvModName
load_module CvPediaUnitChart
load_module CvPediaBonus
load_module CvPediaTerrain
load_module CvPediaFeature
load_module CvPediaImprovement
load_module CvPediaCivic
load_module CvPediaCivilization
load_module CvPediaLeader
load_module CvPediaSpecialist
load_module CvPediaHistory
load_module CvPediaProject
load_module CvPediaReligion
load_module CvWorldBuilderScreen
load_module Popup
load_module CvWorldBuilderDiplomacyScreen
load_module CvDebugTools
load_module CvDebugInfoScreen
load_module CvMapGeneratorUtil
load_module CvGFCScreen
load_module CvPopupInterface
load_module CvScreenUtilsInterface
load_module CvScreenUtils
load_module CvWBPopups
load_module CvCameraControls
load_module CvAdvisorUtils
load_module CvSecondRevolutionEventManager
load_module pickle
load_module CvTranslator
load_module TheLopezUtils
load_module SniperUtils
load_module SdToolKit
load_module cPickle
load_module CityUtils
load_module CvGameInterface
load_module CvGameInterfaceFile
load_module CvSniperModGameUtils
load_module Partisan
PY:OnInit
load_module CvAppInterface




EDIT:
Here is the Mod with my modifications (http://s19.quicksharing.com/v/5743141/SecondRev_SniperError.7z.html), so you can have a look during the 3 days I'll be offline.

Dale
Oct 26, 2006, 07:30 AM
Okay, a fixed up CIV4UnitInfos.xml file (the only file I changed): http://users.g-node.com.au/thesdale/CIV4UnitInfos.zip

Missiles and arty are working as planned. I didn't get a chance to look at snipers.

What units do you want to allow sniper ability to?

Dale

GarretSidzaka
Oct 26, 2006, 01:14 PM
UNIT_SNIPER
UNIT_MODERN_SNIPER
it will be okay to give them equivelent sniping power, i plan on differentiating them in other abilities.

thanks mate

Dale
Oct 28, 2006, 06:09 PM
Okay, here are the latest changes only (to cut down file size).

Ranged Bombard: works
Missiles: works
Snipers: everything is in and appears to be trying to work, however there's a python error coming up.

"CvSecondRevolutionEventManager line 270: CvGameUtils no attribute "isTakeShotEnabled". There's a couple more too.

I think it is failing to load sniper mods game utils. Anyways, not being very good at python, and not going to have time today, I'm going to have to pass this across to you fabrysse. In-game, the harrass button comes up, but when you click it nothing happens.

Everything else for snipers is in: graphics, texts, units, buttons etc.

File: http://users.g-node.com.au/thesdale/Assets.zip

Dale

Dale
Oct 28, 2006, 06:12 PM
BTW fabrysse:

In your warlords civilisationIV.ini change the following attribute to 0 (zero). Will allow the full python error to popup in-game.


; Set to 1 for no python exception popups
HidePythonExceptions = 0


Dale

GarretSidzaka
Oct 28, 2006, 06:39 PM
You know, Dale, I think that Sniper Mod is unnessasary to the scope of this mod, so we dont really need it. I think we can just go with what you have without the sniper mod.

edit: i guess unless it miraculously starts working!!


Okay, here are the latest changes only (to cut down file size).

Ranged Bombard: works
Missiles: works
Snipers: everything is in and appears to be trying to work, however there's a python error coming up.

"CvSecondRevolutionEventManager line 270: CvGameUtils no attribute "isTakeShotEnabled". There's a couple more too.

I think it is failing to load sniper mods game utils. Anyways, not being very good at python, and not going to have time today, I'm going to have to pass this across to you fabrysse. In-game, the harrass button comes up, but when you click it nothing happens.

Everything else for snipers is in: graphics, texts, units, buttons etc.

File: http://users.g-node.com.au/thesdale/Assets.zip

Dale

Dale
Nov 10, 2006, 05:24 AM
2.08 DLL file, with ranged bombardment and missiles. No sniper as discussed. :)

http://users.g-node.com.au/thesdale/2ndRevDll.zip

Dale

Fabrysse
Nov 10, 2006, 05:49 AM
Does python run, or not ?...
I can't test right now (I'm at work). I'll test this evening. I'll be back on monday.

GarretSidzaka
Nov 10, 2006, 12:57 PM
@dale

thanks bro. you did that way quick, like a couple hours!!

@Fabrysse

Good to hear from you! I dont think dale did the python, so if you would like to write up the python with no snipers and with the new DLL, that would be awsome!!

Fabrysse
Nov 13, 2006, 01:55 AM
Good to hear from you! I dont think dale did the python, so if you would like to write up the python with no snipers and with the new DLL, that would be awsome!!

I had a problem. While loading, Civ stopped and I had nothing at screen. At the beginning, I thought it was a problem with the dawn of man, but it runs normally on an other mod...
Did you have the same problem ?

GarretSidzaka
Nov 13, 2006, 03:37 AM
Yes i did. this began with the new warlords version.

Fabrysse
Nov 13, 2006, 03:45 AM
Yes i did. this began with the new warlords version.

Well.... I'll try again this evening. Perhaps my Civ was fedup with crashing each time I test something on my new mod... :lol:
But I think that python is OK.