1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

SDK for Second Rev

Discussion in 'Civ4 - The Second Revolution' started by Dale, Oct 17, 2006.

  1. GarretSidzaka

    GarretSidzaka Deity

    Joined:
    Dec 17, 2002
    Messages:
    4,696
    Location:
    Arizona
    excellent!!! thank you guys for putting in the late nights!
     
  2. Fabrysse

    Fabrysse Charming-snake learner

    Joined:
    Sep 11, 2006
    Messages:
    430
    Location:
    Toulouse - France
    :( That doesn't run.

    Several problems :
    • XML alerts at loading :
      Code:
      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 :
        Spoiler :
        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 :
        Spoiler :
        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_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MESSAGES', '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 :
        Spoiler :
        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_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MESSAGES', 'ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MESSAGES', '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, so you can have a look during the 3 days I'll be offline.
     
  3. Dale

    Dale Deity

    Joined:
    Mar 14, 2002
    Messages:
    7,018
    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
     
  4. GarretSidzaka

    GarretSidzaka Deity

    Joined:
    Dec 17, 2002
    Messages:
    4,696
    Location:
    Arizona
    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
     
  5. Dale

    Dale Deity

    Joined:
    Mar 14, 2002
    Messages:
    7,018
    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
     
  6. Dale

    Dale Deity

    Joined:
    Mar 14, 2002
    Messages:
    7,018
    BTW fabrysse:

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

    Dale
     
  7. GarretSidzaka

    GarretSidzaka Deity

    Joined:
    Dec 17, 2002
    Messages:
    4,696
    Location:
    Arizona
    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!!


     
  8. Dale

    Dale Deity

    Joined:
    Mar 14, 2002
    Messages:
    7,018
  9. Fabrysse

    Fabrysse Charming-snake learner

    Joined:
    Sep 11, 2006
    Messages:
    430
    Location:
    Toulouse - France
    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.
     
  10. GarretSidzaka

    GarretSidzaka Deity

    Joined:
    Dec 17, 2002
    Messages:
    4,696
    Location:
    Arizona
    @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!!
     
  11. Fabrysse

    Fabrysse Charming-snake learner

    Joined:
    Sep 11, 2006
    Messages:
    430
    Location:
    Toulouse - France
    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 ?
     
  12. GarretSidzaka

    GarretSidzaka Deity

    Joined:
    Dec 17, 2002
    Messages:
    4,696
    Location:
    Arizona
    Yes i did. this began with the new warlords version.
     
  13. Fabrysse

    Fabrysse Charming-snake learner

    Joined:
    Sep 11, 2006
    Messages:
    430
    Location:
    Toulouse - France
    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.
     

Share This Page