搜索结果: *

  • 用户:pooo
  • 按日期排序
  1. pooo

    Modding Q&A [For Quick Questions and Answers]

    Hello i have resurfaced from my lair to ask a new question i have been scratching my head on

    so i kinda feel like this is a really easy question but i can't figure it out(people making their mods probably figured this out).I have these new factions that i added.They have villages and stuff but when i go to these villages theres no recruit volunteers option.I scoured module scripts and module troops to try  and find the right thing.Howhever,there isn't anything that looks like the right thing to change.(also tried every other module.py file).

    i assumed that there would be a thing that would let me change it

    Im using Morghs editor (troop editor)

    So i added a new troop,but how do you  make them recruitable in villages?

    I also tried modifying an existing troop(in this case swadian recruit/i only changed the name)I assumed since it was swadian recruit the new troop name would show up when going into the recruit volunteers screen.To my suprise it no longer shows the recruit volunteers option aswell.


    I tried searching this up but didnt find anything.(there was a mention but the tutorial author forgot to do it xd)
  2. pooo

    Modding Q&A [For Quick Questions and Answers]

    Hello again,i did and the map showed up in my new game but then i realised that you can't walk on mountains xd and also  for some reason plains show up as snow.(cartographer)

    So i went into blender and retextured the mountains as steppe,some other places to mountains and some water tiles to bridges  (the plains are clearly  plains i didnt put snow)(even in cartographer it shows up as plains) . then reinported into cartographer,placed all the parties then saved.so i copy pasted module_parties and map  text into the correct places and when i started a new campaign but it just stops at initializing map.

    Now because of this i redid everything twice(i thought it was that i didnt check the right options when importing exporting in blender)
    then i used my backups and it gave the same thing.

    I saw 2 posts on the forum with the same question

    the first one there was no answer to

    the second 2 people had the same error apparently it has to do with the max y and max x and they had to change it in settings.cfg but theres only settings cfg in thorgrims map editor wich i do not use
    (there ended up not being any other answer)



    So i'm thinking that whats happening is because i changed some terrain to steppe and some other places to mountain (its obvious its got something to do with the map.text file)


    EDIT : idk if this will help but i found out about rlg log today and this is what it says

    } //Processing Ini File Finished
    Loading Music...
    Loading Textures...
    Finished Loading Textures...
    L8 Format is  unsupported
    WARNING: UNABLE TO MAP SOUND CODE:  snd_release_crossbow_medium
    WARNING: UNABLE TO MAP SOUND CODE:  snd_release_crossbow_far
    WARNING: UNABLE TO MAP SOUND CODE:  snd_bullet_hit_body
    WARNING: UNABLE TO MAP SOUND CODE:  snd_player_hit_by_bullet
    WARNING: UNABLE TO MAP GAME PRESENTATION CODE:  prsnt_game_start
    WARNING: UNABLE TO MAP GAME PRESENTATION CODE:  prsnt_game_escape
    WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_check_party_sees_party
    WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_get_party_speed_multiplier
    WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_missile_launch
    WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_missile_dives_into_water
    WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_troop_upgrades_button_clicked
    WARNING: UNABLE TO MAP GAME SCRIPT CODE:  game_character_screen_requested
    Loading Module...
    Loading item kinds...
    Loading dialogs...
    Loading mission templates...
    Loading party templates...

    rgl_post_warning_line: get_skeleton_anim failed for: equip_musket
    rgl_post_warning_line: get_skeleton_anim failed for: equip_musket
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_stand_man
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_stand_man
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_greatsword_cstance
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_staff_cstance
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_fire_pistol
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_fire_pistol
    rgl_post_warning_line: get_skeleton_anim failed for: man_reload
    rgl_post_warning_line: get_skeleton_anim failed for: man_reload
    rgl_post_warning_line: get_skeleton_anim failed for: man_reload
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_staff_cstance_attack
    rgl_post_warning_line: get_skeleton_anim failed for: crouch_staff_cstance_attack
    rgl_post_warning_line: get_skeleton_anim failed for: spear_thrust_overhead
    rgl_post_warning_line: get_skeleton_anim failed for: spear_thrust_overhead
    rgl_post_warning_line: get_skeleton_anim failed for: spear_thrust_overhead
    rgl_post_warning_line: get_skeleton_anim failed for: spear_thrust_overhead
    rgl_post_warning_line: get_skeleton_anim failed for: spear_thrust_overhead
    rgl_post_warning_line: get_skeleton_anim failed for: reload_pistol_new
    rgl_post_warning_line: get_skeleton_anim failed for: musket_upper_swing
    rgl_post_warning_line: get_skeleton_anim failed for: musket_upper_swing
    rgl_post_warning_line: get_skeleton_anim failed for: musket_upper_swing
    rgl_post_warning_line: get_skeleton_anim failed for: musket_upper_swing
    rgl_post_warning_line: get_skeleton_anim failed for: musket_upper_swing
    rgl_post_warning_line: get_skeleton_anim failed for: musket_thrust_forward
    rgl_post_warning_line: get_skeleton_anim failed for: musket_thrust_forward
    rgl_post_warning_line: get_skeleton_anim failed for: musket_thrust_forward
    rgl_post_warning_line: get_skeleton_anim failed for: musket_thrust_forward_parry
    rgl_post_warning_line: get_skeleton_anim failed for: musket_thrust_forward_parry
    rgl_post_warning_line: get_skeleton_anim failed for: equip_pistol
    rgl_post_warning_line: get_skeleton_anim failed for: equip_pistol loading time:  28819
    Finished All...
    load_map_data complete.

    why would it say load_map data complete when it doesnt work lol

    EDIT 2 : i also tried unticking load textures on demand and that also didnt work

    EDIT 3 : ok this is a crazy thought but maybe it doesnt work because i have like really big mountains(that became steppe) and youre not allowed steppe thats that sharp

    EDIT 4: MYFRIENDS i amhappy to announce that i have fixed the problem i used the brush tool to file down the mountains and reimported to cartographer and now it works)although im not sure it didnt work because of the mountains. :mrgreen: :mrgreen: :mrgreen:
  3. pooo

    Modding Q&A [For Quick Questions and Answers]

    Hello i started a new game to see  my map.Everything goes well up until i get into i get onto the world map.Its pretty much all sky.I can see the text at the bottom left where it says stuff like: Boyar velsin has been defeated by xxx lord stuff like that.Howhever  i could move around my party since it was all sky.But its interesting that i get attacked by looters  and we would fight.

    I tried to tweak some stuff to see if it would work like i moved all my castles into firm land on cartographer since i thought this was what caused it.

    I tried a new save and i looked around and i saw something

    IT WAS THE SIDE OF MY MAP!!i was like omg  :eek: :eek: :eek:

    Ok so i tried to teleport there since i had cheats on but the camera wouldn't go to where i teleported. I could see some of my towns so clicked on them but it never went into the town screen.Alaso if i go into notes and click show on map for a settlement the camera just moves around a bit but never goes to the settlement

    But then it dawned upon me that from the position  where i spawn i was at coordinates 0.0

    so i went into module_parties and i changed main party spawns and temp party spawns but i still spawned in the same place.

    At this point i was like maybe somethings wrong with my map

    i have to admit my map in blender is ****ty so maybe that would be the problem

    some extra info ( when i compile everything is ok ,theres a big rabbit hole in my blender map)
  4. pooo

    Modding Q&A [For Quick Questions and Answers]

    i'm sorry if i'm asking too many questions

    i've realised my errors and thanks to you i have fixed them.

    Everything after has gone well, i ran cartographer and it worked.Howhever after closing cartographer and reopening it came up with this error

    Broken MAB install? <C:\Users\zhiji\Desktop\Mount&Blade>
    Found WB installation on <C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband>
    Found WFAS installation on <C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade With Fire and Sword>
    Msys folder at <C:\Users\zhiji\Desktop\Swyter-cartographer-a69d41873a37\res\msys>
    Module folder at <C:\Users\zhiji\Desktop\Swyter-cartographer-a69d41873a37\res\mod>
    @--start loading font xml
        width:2048  height:1024    padding:5
      font loaded in 0.016s
    @--start loading font dds
    SOIL DDS created a new texture with handle 1
    @--start parsing map
      ended parsing 0.225s
    20919 vertex, 41633 faces
    luajit: .\mab-map.lua:117: attempt to perform arithmetic on a nil value
    stack traceback:
            .\mab-map.lua:117: in function 'load'
            cartographer.lua:54: in main chunk
            [C]: ?
    _________________________
    Oops, looks like we have a bug over there :smile:
    Press any key to continue . . .

    i went to map.lua to line 117 and it came up with this

      --@faces array
      s=0
      for i=vtx+3,vtx+2+fcs do
        s=s+1
        local r=raw
       
        mab.map.fcs={r[4]+1,r[5]+1,r[6]+1} --lua tables start at 1
        mab.map.fcs[11]=r[1]

    But this is a comment so it musnt do anything

    and then i went to lign 54 of cartographer.lua but thats also a comment so

    i used cartographer many times after fixing errors before so when does it show up now? :ohdear:

    Edit:im thinking it has to do something with the map because when i copy pasted it to a new cartographer file it made the same error while with the native map.text it worked

    Edit 2: FRIENDS ALL IS NOT LOST (before i worked all night to place the castles villages and stuff  in cartographer)so what i did is i took the module_parties file and copy pasted it to a new cartographer save and the locations are still where they are!  :grin: :grin: :grin: :grin:
  5. pooo

    Modding Q&A [For Quick Questions and Answers]

    thank you so much for answering my last question  :grin:

    i moved my module system and my mod folder into cartographer( res and mod),aswell as the textures folder and im happy to say it no longer displays that error.Instead theres another one.

    Broken MAB install? <C:\Users\zhiji\Desktop\Mount&Blade>
    Found WB installation on <C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband>
    Found WFAS installation on <C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade With Fire and Sword>
    Msys folder at <C:\Users\zhiji\Desktop\Swyter-cartographer-a69d41873a37\res\msys>
    Module folder at <C:\Users\zhiji\Desktop\Swyter-cartographer-a69d41873a37\res\New Naruto>
    @--start loading font xml
        width:2048  height:1024    padding:5
      font loaded in 0.014s
    @--start loading font dds
    luajit: .\soil.lua:100: SOIL DDS failed
    stack traceback:
            [C]: in function 'error'
            .\soil.lua:100: in function 'loadTexture'
            .\mab-font.lua:55: in function 'load'
            cartographer.lua:41: in main chunk
            [C]: ?
    _________________________
    Oops, looks like we have a bug over there :smile:
    Press any key to continue . . .

    Now i've searched on forums and swyter wrote to replace the soil.ddl with a fresh soil.ddl  file because it was most likely broken.
    Howhever when i did that it still didn't solve the problem.(i tried this 2 times each with different cartographer downloads)

    (Some of the things i tried to do to fix it)

    placed the texture folder into res-mod-data
    took out font.dds from textures and put it into res-mod-data
    placed soil.ddl into res-mod-data etc...

    Then i delved into the font.lua file to lign 100

    if soilffi then
    --- Loads an image file to a texture, using SOIL
    -- @param filepath Path to file to load texture from / DDS-DXT1-3-5 / PNG / BMP / JPG / TGA / ...
    -- @return Texture ID
    function soil.loadTexture(filepath)

    local image = soilffi.SOIL_load_OGL_texture(filepath, soilffi.SOIL_LOAD_AUTO, soilffi.SOIL_CREATE_NEW_ID, soilffi.SOIL_FLAG_MIPMAPS+soilffi.SOIL_FLAG_TEXTURE_REPEATS+soilffi.SOIL_FLAG_INVERT_Y)

    if image == 0 then
    error("SOIL DDS failed")
    else
    print("SOIL DDS created a new texture with handle "..image)
    end

    return image
    end
    end


    Honestly i don't know whats causing this maybe the soil dds  is broken but that probably not it

    (Interesting tid bit)

    I changed if image == 0 to if image == 1 to see what would happen

    and when i ran cartographer it worked but the coordinates and the locations were blurred in white (idk if this might help,probably not)
    also thank you so much for answering my questions  :grin:
  6. pooo

    Modding Q&A [For Quick Questions and Answers]

    hello i'm a first time modder and i made a map using cartographer howhever when i run cartographer i got  this error :

    插入代码块:
    Broken MAB install? <C:\Users\zhiji\Desktop\Mount&Blade>
    Found WB installation on <C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband>
    Found WFAS installation on <C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade With Fire and Sword>
    Msys folder at <C:\Users\zhiji\Desktop\Swyter-cartographer-a69d41873a37 - Copy>
    Module folder at <>
    @--start loading font xml
    luajit: .\mab-font.lua:22: bad argument #1 to 'lines' (\..\..\Data\FONT_DATA.XML: No such file or directory)
    stack traceback:
            [C]: in function 'lines'
            .\mab-font.lua:22: in function 'load'
            cartographer.lua:46: in main chunk
            [C]: ?
    _________________________
    Oops, looks like we have a bug over there
    Press any key to continue . . .



    I searched the cartographer comments for a solution:


    Swyter wrote;
    Either copy the font there, or go custom. cartographer.lua, line 41 and company. I wanted to keep it simple. See how I did for SWC.

    插入代码块:
    --@ load our font
      require "soil"
      require "mab-font"
      mab.font:load(mod.."\\Data\\FONT_DATA.XML",
                    mod.."\\textures\\FONT.dds")
                    
     -- mab.font:load("R:\\Juegos\\swconquest\\modules\\swconquest\\Module Data\\FONT_DATA.XML",
     --               "R:\\Juegos\\swconquest\\modules\\swconquest\\Textures\\FONT_SWC.dds")
    
    --@ load our map
      require "mab-map"
      mab.map:load(mod)--"R:\\Juegos\\swconquest\\modules\\swconquest")
      
    --@ load our locations
      require "mab-parties"
      mab.parties:load(msys.."\\module_parties.py")--"R:\\Juegos\\swconquest\\modules\\swconquest-msys\\module_parties.py")
      mab.parties:groundalign()

    -----------------------------------
    back to me ;
    i checked the unedited cartographer.lua files and it was the same exact code above.I thought that was weird so i changed them to point to my files  like this;

    插入代码块:
    --@ load our font
      require "soil"
      require "mab-font"
      mab.font:load(mod.."\\Data\\FONT_DATA.XML",
                    mod.."\\textures")
    
     function check(f)
        if not io.open(f,"r") then return false else io.close() return f end
      end               
     
    -- mab.font:load("C:\\Program Files (x86)\\Steam\\steamapps\\common\\MountBlade Warband\\Modules\\New Naruto\\Module\\Data",
     --               "Textures")
    
    --@ load our map
      require "mab-map"
      mab.map:load(mod)--"C:\\Program Files (x86)\\Steam\\steamapps\\common\\MountBlade Warband\\Modules\\New Naruto")
      
    --@ load our locations
      require "mab-parties"
      mab.parties:load(msys.."\\module_parties.py")--"C:\\Program Files (x86)\\Steam\steamapps\\common\\MountBlade Warband\Modules\\New Naruto\\module_parties.py")
      mab.parties:groundalign()

    so then i ran cartographer again but it gave the same error ;



    插入代码块:
    Broken MAB install? <C:\Users\zhiji\Desktop\Mount&Blade>
    Found WFAS installation on <C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade With Fire and Sword>
    Msys folder at <C:\Users\zhiji\Desktop\BACKUP2>
    Module folder at <C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband\Modules\New Naruto>
    @--start loading font xml
    luajit: .\mab-font.lua:22: bad argument #1 to 'lines' (C:\Program Files (x86)\Steam\steamapps\common\MountBlade Warband\Modules\New Naruto\Data\FONT_DATA.XML: No such file or directory)
    stack traceback:
            [C]: in function 'lines'
            .\mab-font.lua:22: in function 'load'
            cartographer.lua:41: in main chunk
            [C]: ?
    _________________________
    Oops, looks like we have a bug over there :smile: 
    Press any key to continue . . .


    After this i started to be weary so i went into the texture files to see what was happening.


    when i go into native texture files there  is no font.dds files but there are dds files just not one that says font
    same thing my mod folder


    maybe im missing a file so i verified integrity of game cache through steam,then it said it was missing 1 file so then i checked native and my mod texture folders and there was still no font.dds file to be found.

    So this is my conclusion(sorta )  are we supposed to make our own font.dds file? because how swyter did it was he had font_swc.dds


    Extra info:
    my computer is windows 10 and when i compile everything is ok.
  7. pooo

    How to M feint

    i was looking bug fixes for my mod when i got curious and stumbled upon this part of the forum.Now i know the secrets to being good!!!
后退
顶部 底部