Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ricemaster

#1
Help / errors on adding gizmo..
April 15, 2016, 07:20:06 AM
hello.

I'm trying to add gizmo on my mod but...

System.TypeLoadException: Could not load type 'System.Action' from assembly 'Landmines'.

  at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (IEnumerable`1 selectedObjects) [0x00000] in <filename unknown>:0


this exception keep happens.

        public override IEnumerable<Gizmo> GetGizmos()
        {
            IList<Gizmo> clist = new List<Gizmo>();
            Command_Action Cact;
            Cact = new Command_Action();
            Cact.icon = toggletrap;
            Cact.defaultDesc = "Toggle arm state";
            Cact.activateSound = SoundDef.Named("Click");
            Cact.action = new Action(this.ToggleArm);
            Cact.groupKey = 13379998;
            Cact.hotKey = KeyBindingDefOf.Misc1;
            clist.Add(Cact);
            IEnumerable<Gizmo> gizmos = base.GetGizmos();
            if (gizmos != null)
                return clist.AsEnumerable<Gizmo>().Concat(gizmos);
            else
                return clist.AsEnumerable<Gizmo>();
        }


this is my code for gizmo. am I missing something? or overrided gizmo in wrong way? the other parts of code work just fine  :(
I checked the forum and found a similar thread(about .NET version) but .NET version of my project is 4.5.
#2
----Landmines V1.11----


Description

this simple mod adds 10 landmines with new Designation Tab - 'Landmines'

not like vanilla IED, these mines will explode almost immediately when triggered.

download links at below.

contents

  • Basic
    - Wooden mine - cheap to spam but has very small blast radius
    - pressure plate mine
  • Advanced
    - M-2 landmine
    - M-23 landmine - napalm mine
    - Smart mine
    • Non-lethal
      - M-90R landmine - non-lethal mine that spread rocksalt pieces when explode.
      - M-90S landmine - stun mine. it's basically non-lethal but can be lethal in extreme condition.
  • Experimental
    - XM-C1 landmine - Lethal chemical mine.
    - XM-C2S landmine - Non-lethal chemical mine
    - XM-22 landmine - nuke mine(need uranium to craft)l
  • workbench for craft mine components

How to use

  • install the mod - Unzip the contents and place them in your 'RimWorld/Mods' folder and Activate the mod in the mod menu in the game.
  • research 'Mine Tech' after IED
  • build mine crafing bench
  • craft mine components for landmine (need woolog, steel and plasteel)
  • lay landmines wherever you want


[Nuke mine explosion demo]

Changelog

V1.11
- A14 compatability fix.

V1.1
- added XM-C2S landmine: sleep gas mine
- applied research tree(basic->advanced and non-lethal->experimental)
- added advanced mine(yield 4 adv. components in single craft) component and increase stack limit to 200
    - you can craft basic mine components without plasteel now
- applied custom accident rate to some mines. (ex: chemical mines are easier to be triggered by friendlies).
- added blast radius preview
- market value and resource, landmine build cost adjustment


V1.02
- added M-90S landmine: stun mine.
- added XM-C1 landmine: chemical mine. effect stays longer than M-90S.
- added Smart mine: has arm/unarm function and remote detonation function.
- added Designation tab for mines so no more mess with Security tab.

V1.01
- added M-90R landmine: non-lethal mine that deals minimal damage.
- changed damage type of XM-22(=nuke mine) to flame and increased damage, reduced blast radius.
- increased work time of placing mines.
- resource balancing.

V1.0
- initial release

Future plan

Non-lethal mines.
Smart mines: landmine that you can toggle armed status.
research tree rework.
Chemical mines: causing various sickness.
smart upgrade (adding gizmos of smart mine to all mines when researched)

----Anti bug Resonator V0.61----

add a building that can prevent infestation nearby area.
resonator need to be constructed under the roof or it won't work


well.. it's preventing mechanism is little crude :P
there're many conditions for choosing where to spawn when infestation occurs and I found one major condition: type of roof.
every roof has an argument 'isNatural' and infestation can occur only in a place where it's true(=natural cave).

so, this building just makes nearby roofs to 'not natural' when it's active to prevent infestation.
(that isNatural thing doesn't appear at in-game screen nor related to roof's other conditions I think.)

it's little expensive so you can't just crawl inside and build this in early game.

download links at below.

How to use

  • install the mod - Unzip the contents and place them in your 'RimWorld/Mods' folder and Activate the mod in the mod menu in the game.
  • Research anti bug tech
  • make Anti bug gel with Insect jelly
  • build Anti bug Resonator wherever you want - it's in Security tab
  • power it up

Known issues
-ABR can't block infestation perfectly when the cave is not deep enough or if there's a hole(=no roof area) in the cave.

Changelog

V0.61
- A14 compatability fix.

V0.6
- added radius toggle feature.
- applied research tree
- balancing(build cost): resonator needs plasteel and 'Insect jelly'(and some gold) to build now.
- tweaked radius checking code more precisely.

V0.511
- Bug fix: inhibition effect is not 'resumed' when inhibition status toggled with an incident or something.

V0.51
- Bug fix: inhibition effect is not removed when you load a previous game at the same map.
- Bug fix: actual effect radius is wider than display.
- Bug fix: Occasional weird roof name displaying.
- Bug fix: can't deconstruct resonator at no-roof area.
- added power toggle.
V0.5
- initial release

Future plan
gizmos for adjusting size of resonate area and power consumption.
balancing.


----Grindstone V1.01----

Description

simple mod that adds two grindstones. and it's not for crops grinding.



with this, your colonists can literally grind skills! yay!

download links at below.

contents


  • Mysterious grindstone - simple grindstone. it's ugly and needs raw food to operate.
  • Mysterious premium grindstone - expensive one. but it's beautiful, no fuel consumption, has longer grindtime and even entertaining. yeah... pay 2 win...

How to use

  • install the mod - Unzip the contents and place them in your 'RimWorld/Mods' folder and Activate the mod in the mod menu in the game.
  • build grindstone wherever you want

Changelog

V1.01
- Bug fix: Melee skill grinding wasn't able to.

V1.0
- initial release

------------------------------------------
Authors of the mods
Just me :)

Thanks to
Ashiver: gave me an idea about Anti bug resonator




have fun!