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

KAG Test-map?

Discussion in 'Help' started by Innocence, Nov 6, 2013.

Mods: makmoud98, Mazey
  1. Innocence

    Innocence Catapult Fodder

    Messages:
    11
    Anyone got a good map for quickly testing various aspects of the game, ie. traps, kegs, bombs, buckets, fire, catapults etc.? :bomb::bucket: :keg::bow:!!!

    I realize I could spend an evening making one myself, but I can't help but think someone already did :flex:
     
  2. Gurin

    Gurin Stop That! Global Moderator Donator Tester

    Messages:
    358
    Sandbox should be good enough.
    If need mats:

    !mats_stone
    !mats_wood
    (To use these, type in your chat bar or use the Home key. Can't remember)

    Correct me if i'm wrong.
     
  3. sinnertie

    sinnertie Ministry of Hatred Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    252
    The cvars are almost correct just without 's' so !mat_stone etc.
     
    Gurin likes this.
  4. Innocence

    Innocence Catapult Fodder

    Messages:
    11
    Thanks, but that'd still mean I'd have to build a new fort from the ground up, before I can practice demolishing it - instead of simply reloading the map.

    Are there no premade maps already featuring various structures and factories?
     
  5. Kouji

    Kouji Cold, Uncaring, Sadistic, Evil and Cruel Meanie Administrator Global Moderator Forum Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]
    2. REKINS OF SEAS: Super Crew of Ultimate Havoking 2: Return of King of KAG: Chapter 420blazeit - REKIN

    Messages:
    2,910
    if you are in sandbox:
    build your tower
    open up console (home key on windows/linux, don't ask me where it is for mac cause I don't know, ask a mac user)
    type: /savemap name_you_want_map_called
    close console (press home key again)
    do your testing
    open console
    type: /loadmap name_of_map_you_saved_it_as
    close console
    do additional testing

    from this point on, you can just type /reloadmap (in console) every time you want the map to be loaded from scratch.
     
    Food likes this.
  6. Innocence

    Innocence Catapult Fodder

    Messages:
    11
    Ah nice thanks :B):
    --- Double Post Merged, Nov 7, 2013, Original Post Date: Nov 7, 2013 ---
    I found a lists of commands to be used when you've set /sv_test 1 in the console. Finally figured out you had to write the commands (ie. !catapult) in the chat window, not in the console :) 25252525
    /savemap seems to work, ie. /savemap Test At saves a file named Test.kag in my [Steam\steamapps\common\King Arthur's Gold\Base\Maps] folder :migrant:

    However when I load the map (/loadmap Test), I simply get a new random generated map - not the map I just saved. This happens even if I quit the game and start a new Solo Sandbox game???

    /reloadmap returns command [reloadmap] is not a valid command :oops:
    EDIT: /restartmap works, so looks like only /loadmap is the problem

    Seems like some of the commands are broken?
     
    Last edited: Nov 7, 2013
  7. Kouji

    Kouji Cold, Uncaring, Sadistic, Evil and Cruel Meanie Administrator Global Moderator Forum Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]
    2. REKINS OF SEAS: Super Crew of Ultimate Havoking 2: Return of King of KAG: Chapter 420blazeit - REKIN

    Messages:
    2,910
    for savemap, try savemap Test.png otherwise try /savebitmap Test

    /loadmap is working, it's just that it saved as a generator since that's what the original map was. Anyways once it is saved as a .png, just type /loadmap Test.png

    for /reloadmap it's actually /restartmap (iirc, was using it just yesterday, but I might have confused it with /reloadsecurity)
     
  8. Innocence

    Innocence Catapult Fodder

    Messages:
    11
    Ok thanks, done some more testing :)

    When I use /savemap test.png, I actually get a test.png picture file in the same folder, one I can even open it in a normal graphics editor :rekt:

    However neither /loadmap test nor /loadmap test.png will load the map, it just gives me a new random map. Console log:
    Code:
    [20:50:56] /loadmap test.png
    [20:50:56] *Restarting Map*
    [20:50:56] GENERATING KAGGen MAP Maps/test.kaggen.cfg
    [20:50:56] Checking is server modded...
    [20:50:56] Using custom map Maps/test.kaggen.cfg
    [20:50:56] **** This is a modded server; it will be filtered in the browser for players with 'modded servers' unchecked ****
    [20:50:56] Restarting rules script: Rules/Sandbox/Scripts/Sandbox_Rules.as
    [20:50:56] ADD SPAWN FOR Innocence
    [20:50:56]
    [20:50:56] New track added to mixer Sounds/Music/ambient_forrest.ogg
    [20:50:56] New track added to mixer Sounds/Music/ambient_mountain.ogg
    [20:50:56] New track added to mixer Sounds/Music/ambient_cavern.ogg
    [20:50:56] New track added to mixer Sounds/Music/KAGWorldIntroShortA.ogg
    There is no /savebitmap command - but there is a /loadbitmap command.

    However:
    Code:
    [20:55:03] /loadbitmap test
    
    [20:55:03] *Restarting Map*
    [20:55:03] LOADING PNG MAP Maps/test.png
    [20:55:03] Error loading image
    [20:55:03] Restarting rules script: Rules/Sandbox/Scripts/Sandbox_Rules.as
    [20:55:03] ADD SPAWN FOR Innocence
    
    I get a blank (all sky) screen.

    And:
    Code:
    [20:56:31] /loadbitmap test.png
    [20:56:31] *Restarting Map*
    [20:56:31] File not found Maps/test.png.png
    [20:56:31] Unknown map file extension
    
    [20:56:31] Generating map from seed 17885; size 32768 bytes
    [20:56:31] Checking is server modded...
    [20:56:31] Restarting rules script: Rules/Sandbox/Scripts/Sandbox_Rules.as
    [20:56:31] ADD SPAWN FOR Innocence
    Now screen is filled with random blocks and it loops forever trying to create a spawn location.
     
  9. Kouji

    Kouji Cold, Uncaring, Sadistic, Evil and Cruel Meanie Administrator Global Moderator Forum Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]
    2. REKINS OF SEAS: Super Crew of Ultimate Havoking 2: Return of King of KAG: Chapter 420blazeit - REKIN

    Messages:
    2,910
    The loadbitmap command was imported from classic (it doesn't work correctly from beta)

    Anyways, find where your map is located when it's saved.
    If it's saved in the Maps folder, type: /loadmap Maps/Test.png
    If it's in some other subfolder, like in CTF or something, then type: /loadmap Maps/CTF/Test.png
    Basically it needs to know the exact directory of where it's found.
     
  10. Innocence

    Innocence Catapult Fodder

    Messages:
    11
    Ok so I'm missing the path relative to the install folder. It's in the King Arthur's Gold\Base\Maps, and... /loadmap Maps\test.png worked!!!

    Thanks for helping out :r_flex::B)::flex:
     
Mods: makmoud98, Mazey