1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

How I add a .kag file into map rotation ?

Discussion in 'Modding [KAG Classic]' started by Leo, Jul 29, 2012.

  1. Leo

    Leo Haxor

    Messages:
    503
    Sorry if it's a stupid question but I searched and didn't find it. :huh?:
     
  2. Saverous

    Saverous Shopkeep Stealer

    Messages:
    418
    :
    Code:
    LoadMapCycle( "Rules/Swordfight/SwordfightMapCycle.cfg" ); 
    See that, that loads mapCycle, you can make your own map cycle and then add in your maps:
    Code:
     
    mapcycle = Maps/duel2.png; Maps/duel.png;
    
    Just follow the format and your done!
     
  3. Leo

    Leo Haxor

    Messages:
    503
    Thanks, I made it work with .png but how about .kag ? Tried Maps/name.kag and didn't work.
     
  4. Saverous

    Saverous Shopkeep Stealer

    Messages:
    418
    .kag? whats a .kag?
    Never heard of it
     
  5. Leo

    Leo Haxor

    Messages:
    503
  6. Saverous

    Saverous Shopkeep Stealer

    Messages:
    418
    ok thats hectic, i know nothing about .kag files, i will try and help you.
     
  7. Bunnyboy

    Bunnyboy Haxor

    Messages:
    599
    Are you trying to add the maps to sword fight or a server?
     
  8. Leo

    Leo Haxor

    Messages:
    503
    To server
     
  9. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    It should work like that, make sure you have put the map in the right folder as well.

    If you're hosting on Linux: it's case sensitive.
     
  10. Saverous

    Saverous Shopkeep Stealer

    Messages:
    418
    Isn't it case sensitive on Windows as well?
     
  11. Bunnyboy

    Bunnyboy Haxor

    Messages:
    599
  12. Leo

    Leo Haxor

    Messages:
    503
    It doesn't work guys, my mapcycle.cfg looks like this: "mapcycle = Maps/RiverCrossing5.kag; Maps/Apophenia.png; Maps/generator_ctf_castles.cfg; Maps/generator_ctf_flat.cfg; Maps/generator_ctf_mountain.cfg; Maps/generator_ctf_hole.cfg;" and I get this error: "./dedicatedserver.sh: line 4: 15841 Segmentation fault ./KAGdedi autostart Scripts//dedicated_autostart.gm autoconfig Scripts/dedicated_autoconfig.gm"
     
  13. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    I just remembered my server kicked everyone on certain maps. And looking at the mapcycle it seems I don't have any .kag maps left in it....

    edit: getting the same error when my mapcycle starts with a .kag map:
    Code:
     
    [13:29:40] CreateActor failed: factory: ÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔ                                ÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔ@ÔÔÔÔÔÔÔÔ@@@@@@ config                                : 4²¹¤º2¶¹¡7º¶22¹1³3"·:4º4²¹¤º2¶¹©¸94º2¹¡7º¶22¹873
    Segmentation fault
     
  14. Saverous

    Saverous Shopkeep Stealer

    Messages:
    418
    are you hosting your own server? hosting a server may cause more problems though.
     
  15. Leo

    Leo Haxor

    Messages:
    503
    It's a linux server, dedicated host.
     
  16. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    I've tested some more and it probably is because the '.kag' map you're loading is trying to use different files than the ones present in your server.

    I can't seem to load any external '.kag' maps into my server. (most files have been changed in recent updates) Only '.kag' maps I've created on my own server. This could be because .kag also saves the builderblocks file used (the mapmakers usually don't use the default one) and probably even more files.

    So what you could try is:
    1. save the river crossing as png in your maps folder: https://forum.kag2d.com/attachments/rivercrossing4-png.7544/
    2. load the map on your server /rcon /loadbitmap rivercrossing4 (you might want to disable startup resources when doing this as they will be saved at step 4)
    3. add water: /rcon WaterLevel(30);
    4. save the map /rcon /savemap rivercrossing4
    5. add rivercrossing4.kag to your mapcycle.
     
    Saverous likes this.
  17. Leo

    Leo Haxor

    Messages:
    503
    Thanks, I think I'll stay away from .kag for now and only use good old .png :)
     
  18. ImAwesome

    ImAwesome Haxor

    Messages:
    496
    If. it is a .kag file,you just use /rcon /loadmap,instead of /loadbitmap
     
  19. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    I am pretty sure that .kag maps that are made before the last update won't load.