Page 1 of 2 12 LastLast
Results 1 to 20 of 23

Thread: Prayer for help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Prayer for help

    If you remember i have some problems with making scripts. I'm suspecting there is something wrong with my campaign_script file but it could be something different. So i would like to ask someone for checking my mod for possibility making scripts.
    There is my mod:
    http://www.2shared.com/file/J1XLbhiW/deus_vult.html

  2. #2

    Default Re: Prayer for help

    nobody can look at it?
    Last edited by attyla; February 05, 2011 at 03:31 AM.

  3. #3

    Default Re: Prayer for help

    Three questions:
    1) what did you change?
    2) what are you trying to accomplish?
    and 3) did you check the log?
    I'm not entirely sure where the log is but I know that it helps with debugging scripts, as I've been told by more experienced modders that it records counters.
    A well informed opinion is a well formed opinion.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Prayer for help

    Checking a script on it's own is pretty much a lost effort.
    You can usually find a message in the log why the script didn't run.










  5. #5

    Default Re: Prayer for help

    You can usually find a message in the log why the script didn't run.
    how it looks like? i've checked log lot times but i never found something unusually.

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Prayer for help

    You search for entries that have [error] in them.
    Open the log with notepad, press Ctrl+F and then enter that highlighted word. Click 'Find Next' to find all occasions.
    Error messages usually come in two lines. The error entry and the explanation.










  7. #7

    Default Re: Prayer for help

    So i have problem because i have no errors in my log file...

  8. #8
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Prayer for help

    That means that whatever you did between testing, and everything being fine, and then testing again, and seeing a CTD, caused your problem.

    If the log says nothing then you have to remember what you've done so that you can remove it all stage by stage and find out where you caused an error.

    Sorry if I am pointing out the obvious.
    Last edited by Taiji; February 06, 2011 at 06:25 AM.

  9. #9

    Default Re: Prayer for help

    i never had any CDT - my scripts simply doesn't work and i have no idea why.

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Prayer for help

    I will give it a shot if I can download your mod...










  11. #11
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Prayer for help

    It doesn't matter if it CTDs or not, you're missing the point. You have a problem, and if you forgot how you caused it then you have a serious problem. I'm telling you to fix your approach to modding if you want to avoid situations like this.

    If on the other hand you know what you have changed since it was working last then tell us.
    Last edited by Taiji; February 06, 2011 at 06:32 AM.

  12. #12

    Default Re: Prayer for help

    hmm... am i avoiding something? i've made all i know i can make to find what's going on. i've tryed to make a lot of scripts and every time i could make some errors but it looks litke the game do not notice my try. i've made it and game always miss my etries in CS file.

  13. #13
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Prayer for help

    Quote Originally Posted by attyla View Post
    hmm... am i avoiding something?
    Well if you aren't trying to avoid making problems you can't solve then you should be

  14. #14
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Prayer for help

    Sorry, but your upload got messed up somewhere. I got 6835 broken files in there.

    Simply copy these files into one upload:

    data\world\maps\base\map_climates.tga
    data\world\maps\base\map_ground_types.tga
    data\world\maps\base\map_heights.tga
    data\world\maps\base\map_regions.tga
    data\world\maps\base\map_features.tga
    data\world\maps\base\map_fog.tga
    data\world\maps\base\descr_regions.txt
    data\world\maps\base\descr_sounds_music_types.txt
    data\world\maps\base\descr_terrain.txt
    data\world\maps\campaign\imperial_campaign\descr_events.txt
    data\world\maps\campaign\imperial_campaign\descr_strat.txt
    data\world\maps\campaign\imperial_campaign\descr_mercenaries.txt
    data\world\maps\campaign\imperial_campaign\descr_win_conditions.txt
    data\world\maps\campaign\imperial_campaign\campaign_script.txt
    data\text\names.txt.strings.bin
    data\text\rebel_faction_descr.txt.strings.bin
    data\text\religions.txt.strings.bin
    data\text\imperial_campaign_regions_and_settlement_names.txt.strings.bin
    data\text\expanded.txt.strings.bin
    data\text\export_units.txt.strings.bin
    data\text\export_ancillaries.txt.strings.bin
    data\text\export_vnvs.txt.strings.bin
    data\text\historic_events.txt.strings.bin

    data\text\strat.txt
    data\descr_cultures.txt
    data\descr_names.txt
    data\descr_sm_resources.txt
    data\descr_sm_factions.txt
    data\descr_rebel_factions.txt
    data\descr_religions.txt
    data\export_descr_ancillaries.txt
    data\export_descr_buildings.txt
    data\export_descr_character_traits.txt
    data\export_descr_unit.txt
    Last edited by Gigantus; February 06, 2011 at 08:55 AM.










  15. #15

    Default Re: Prayer for help

    i have no idea why this link contained broken file
    So there is second one:
    http://www.2shared.com/file/G_ntVxJ7/deus_vult_mod.html

    And you can find below files you wanted to see:
    http://www.2shared.com/file/Naj0FMRN/files.html
    Last edited by attyla; February 06, 2011 at 01:02 PM.

  16. #16
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Prayer for help

    Need some more files:
    data\descr_mounts.txt
    data\descr_projectiles.txt (if available)
    data\unit_models\battle_models.modeldb
    data\text\strat.txt











  17. #17

  18. #18

    Default Re: Prayer for help

    Gigantus
    Heve you any idea why game doesn't accept scripts in my mod?
    Last edited by attyla; February 11, 2011 at 07:41 AM.

  19. #19
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Prayer for help

    I compared the script you supplied with the original from Med2 = the only difference is part that commented out (put a semi-colon in front of the lines). So the question is not about accepting the script.

    I had a look at those lines and deleted the ones that are not necessary. You also created a counter and then referred to an event counter, that was most likely the error:

    monitor_conditions I_SettlementOwner Constantinople = byzantium
    ;and I_EventCounter holds_constantinople == 0
    ;add_events
    ;event counter holds_constantinople
    ;date 0
    ;end_add_events
    set_event_counter holds_constantinople 1
    end_monitor

    monitor_conditions not I_SettlementOwner Constantinople = byzantium
    ;and I_EventCounter holds_constantinople == 1
    and I_NumberOfSettlements byzantium > 0
    set_event_counter holds_constantinople 0
    end_monitor
    This will now control an event_counter that you can use in the EDB for recruitment purposes:

    Code:
    recruit_pool "Skythikon"  1   0.03   2  0  requires factions { byzantium, armenia, } and event_counter holds_constantinople 1










  20. #20

    Default Re: Prayer for help

    I've tried meny times and many kinds of this (and not only thtis) script and always i had no effect. No succes, no errors - nothing.
    I'll try to make it one more thime, but i'm weird sure the effect will be the same. It means - there will be no effect

    I have one error i can't find any causes:
    Last edited by attyla; February 11, 2011 at 02:16 PM.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •