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

(´┏O┓`) I would like to add a ”mechanism” to CTF 

Discussion in 'Modding Help' started by kinoluigi7, Feb 17, 2017.

  1. kinoluigi7

    kinoluigi7 Catapult Fodder

    Messages:
    8
    [A]I changed it as follows.
     I can now set up a mechanism in the builder. (In CTF)

    1:I open [Base\Entities\Characters\Builder\CommonBuilderBlocks.as"]
    2:I delited 8line [ line97 : from "if(CTF)" to("}"]
    3:next line changed [else if(TTH)] to [if(TTH)]
    4:line 122 changed [else if(SBX)] , [SBX change to CTF]
    5:I open [\King Arthur's Gold\Mods\tickets\Base\Entities\Characters\Builder\BuilderInventory.as]
    6:I deleted line [if(getRules().gamemode_name != "Sandbox") return;]
    7:I open [\Rules\CTF\gamemode.cfg]
    8:I add [MechanismsServer.as;]and[MechanismsReader.as;]

    Next time I will set up a mechanism on the map. I would like to set up from scratch like Team Deathmatch.

    1:I examined the following data and got color information on the map.
    [\King Arthur's Gold\Base\Scripts\MapLoaders]
    2:I tried writing the next color data on the map.
    [const SColor lever( 0xFF00FFFF); // ARGB(255, 0, 255, 255);]
    3:I tried loading the map I wrote, but no mechanism was set up. : (

    [C]How can I put a mechanism in the map data so that it can be used in CTF?
     

    Attached Files:

  2. Skinney

    Skinney THD Team THD Team Forum Moderator Tester

    Messages:
    468
    Mechanisms use the alpha channel to filter what is and isn't a mechanism within the maploader as well as storing additional information about the mechanism placed such as team color, rotation, etc.

    I would recommend building your mechanisms in game then using the savemap function and further refining your map within an image editing program. Do note that some image editing programs alter the alpha channel when you save your image.
     
  3. kinoluigi7

    kinoluigi7 Catapult Fodder

    Messages:
    8
    I'm grateful for your reply (´┏○┓`)

    I was creating a map with paint software called "sai".
    In "sai" I can save with [32 bpp ARGB].
    Since all of the values of the alpha channel are 255 by default, I thought that it would be reflected even if I did not change anything.
    Should I set up using GIMP etc?
    --- Double Post Merged, Feb 18, 2017, Original Post Date: Feb 18, 2017 ---
    I saw that sai can not set detailed alpha channel settings.
    I would like to make it with GIMP.
    Somewhere in GIMP
    Is there a page on how to create a map to set up the mechanism?
     
    Last edited: Feb 18, 2017