Jump to content

Onkeen

Member
  • Posts

    102
  • Joined

  • Last visited

Posts posted by Onkeen

  1. Spawn Map-Objects Utility - Enhance your maps !

    687474703a2f2f692e696d6775722e636f6d2f69

    Workshop link

    What is this mod ?

    While I was working with the map editor, I got frustrated some items could not be placed using it. For instance, barricades and campfires. So we decided with a friend to solve this problem... Once done we decided to make this mod and make it as generic as possible ! This should allow any mapper to use our object-spawning system to make better maps and any modder to upgrade it with ease.

    I'm a player, what do I need to know or do ?

    Nothing. This mod should be a dependency mod for any map that uses the Spawn Map-Objects Utility. One you have this mod installed, it should work without needing you to do anything.

    I'm a mapper, what is this mod doing precisely and how does it works ?

    Tell me more about it !

    This mod will allow you to place items & events within the map editor like campfire, tents, wall frames, zombies... Those placeholders will be converted into their working version inside the map once loaded. This means you will be able to place pick-up-able tents, light-able campfires, thumpables wooden and metal structures, break windows, spawn zombies at precise places and even more !

    Interesting... So how do I use it ?

    The installation is very simple, once you have subscribed and download this mod, locate it's installation folder :

     

    \Steam_Installation_Folder\steamapps\workshop\content\108600\974718243\mods\SpawnMapObjectsUtil

     

    Once inside the mod folder, you should see a Tiles folder. Open it, and then open the 2x folder. You should see all the placeholders images you will need.

     

    Copy all these .png files to the 2x folder of your Tilezed.

     

    Now, you should be able to use the placeholders via the tilset list. I usually place those on the Furniture layer but it should work on other layers too.

     

    687474703a2f2f692e696d6775722e636f6d2f71

     

    If you want to test the features, check out the building we are using for internal testing : https://rbfi.io/dl.php?key=/0Sol/testmap.tbx

    Once your map is finished and you are ready to publish it to the workshop make sure to add this mod to the dependencies of your map. So that it will be prompted to the players to install it with your map.

    Great, but before I install it, can you showcase some features ?

    Of course, here is the list of what you can do with the current version of Spawn Map-Objects Utility.

    • Place thumpable walls of all possible quality with adjusted durability (Logs, wood, metal).
    • Place fences adjusted durability too (Sandbags, wood, metal plates or bars).
    • Place thumpables and working-properly barricades on windows (1,2,3 or four planks, metal sheet, metal bars)
    • Place upgradable by player walls frames.
    • Place weapons, literature, trash and food items on the floor.
    • Place properly-interactable camping materials (tents, campfires and compost)
    • Zombies-spawner at specific places (Horde inside a tower away from the city or a lone zombie in a specific room...)
    • Add water collecting barrels already full of water
    • Place fishing-nets on your lake or generators in a specific room
    • Break specific windows on the map (with them still barricadable and full of dangerous shards).
    • Break and remove glass from windows and keep it barricadeable
    • Place sheetropes on windows.

    We also plan to add more to this list with upcoming updates, things like traps, sound events and such.

    What are those red tiles on your placeholders images ?

    As said earlier, we are planning to add more tiles to the placeholders. You can use the blue ones, but if you try to place a red one, it won't work. The red tiles are the not-implemented-yet features. But we kept it so that it will be easier to update once done.

    Please do not use the red placeholder tiles.

    I'm a modder, you said I could expand your utility ?

    Even more ! We made functions for you to easily add your own placeholders or remove the "default placeholders" shipped with the mod. Let me explain.

    Create your custom placeholder

    Once you have created the png of your custom new placeholder, you will need to code the replacement function in lua. To do it, you can write your lua file using this template :

    require "WorldManager/SpawnFromPlaceholder";
    
    MyPlaceholder = {};
    MyPlaceholder.replace = function(square, tileObject)
        -- Your code goes here
        
        -- indicate that the method has worked properly
        -- and the placeholder tile can be removed
        return true; 
    end
    
    -- register and identify the placeholder in the system
    SpawnFromPlaceholder.Add({ name = "MyPlaceholder" });

    Here are the explanations :

    First, you need to implement the method MyPlaceholder.replace(square, tileObject) which will be called for each object found in each square loaded. This method need to return a Boolean (true or false) to indicate if the method has worked. If the method return true the program will automatically delete the tile placeholder else it does nothing.

    Be careful of the optimisation of this method because it will be called a large number of times and may produce lag. To avoid bad performances, you should not log messages inside the console (do not forget to remove them after use if you do). Also, make sure tile you are currently checking matches your placeholder name unsing the startString method before doing anything complex.

    The second step is to register your placeholder in the system with the method SpawnFromPlaceholder.Add(placeholderInfoObj). The parameter expect two important properties :

    • name : the name of your object which contains at least the method replace()

    Remove default placeholders

    This mod allow you to remove unused shipped placeholders to save resources and gain performance. To remove the placeholders, you can use this snippet :

    require "WorldManager/SpawnFromPlaceholder";
    
    SpawnFromPlaceholder.Remove({ "WallsPlaceholder", "ZombiePlaceholder", "..." });

    The method will remove the placeholders listed in the array when the event OnGameStart is fired.

    Shipped placeholders list

    • BarricadePlaceholder
    • CampingCompostPlaceholder (campfire, tent and compost)
    • CarpentryAndConstructedPlaceholder (sandbag, barrel, rain collector, lamp)
    • DroppedFoodItemsPlaceholder
    • DroppedTrashItemsPlaceholder
    • DroppedWeaponsItemsPlaceholder
    • GeneratorPlaceholder
    • TrapsPlaceholder
    • WallsPlaceholder
    • WindowStuffPlaceholder (smash & clean window, sheet rope)
    • ZombiePlaceholder
  2. Ok so a friend and I tryed the cars this past week and we notices a few stuff that needs balance of course. But I'm sure those are known and balance will come once the tech test is done. 

     

    Though we found some issues that might interest you in terms of "tech" test :

    1. Large van storage : when my friend stored things in the back of a van I could'nt see them, and then I put some items and he could not see them. Then we leaved the area and once we came back, all the loot had disapeared.

    2. Word issues : We experienced wierd issues with the world, some doors were closed for me and opened for him. Also, I destroyed a wall with a sledgehammer and then he came to that zone and did'nt saw the walls I destroyed (while I could go through them he could'nt).

    3. Perfomance : I dedicated 8Go to the "Host" game, I have a 1070 & i5 3Ghz. And after one hour playing we dropped at 15 FPS (even lower for my friend but this can be because of my bandwith maybe) the frame drop was even more dramatic when we were in two different areas from ech others.

     

    I hope i'm beeing clear enough to help with this experience review. Anyway we had a great time driving cars, thanks a lot that's really good work :)

     

    PS : We didn't found that the noise thing was such a problem like most people felt it. Maybe because the ratio risk-reward using those is pretty postitive : we managed to clean maybe 95% of north/west murglauh in half an hour with two players using 4 cars and then everything was free to loot. But then again, this is a tech test so we understand balance will comme later 

  3. I just realized it's been a while, sorry about the delay, but it's here now !

     

    Mod update compatible with build 36 !

     

    Version 1.5 (release)
    - Carpentry level scaled angain to fit all crafts (new values & new crafts)
    - Compatible with Build 36 
    - Compatible with the new wall system
    - Compatible with the new dismantle system 

    - Sawing dowels now makes the saw noise

    - New recipe ! You can now manage to craft one dowel from a treebrach

    - In order to make the mod more realistic, you can now use alternatives to the screwdriver to carve your dowels (Kitchen or Hunting knife

  4. Hello fellow modders,

     

    I have reworked some of my mods but I just can't manage to upload them anymore : they just don't show up in the "Create and Update" section...

     

    Any leads ? Did I missed something ?

     

    Here is a picture of what I see :

     

    eTyw3sw.png?1

  5.  

    Wow, that's impressive, that guy is riding a bike  :eek: I didn't know blind people could do such things !

     

     

    If you have tryed the mod, you can try to detect zombies or houses by holding CTRL / RMB and putting your sight away, you can see at 5-10 meters but the screen gets darker if you do so, so it forces you to focus back on your character. I use it to check around my house or anticipate zombies groups. 

     

    For example, when I hear that zombies are on the north-west corner, I give furtive looks that way to anticipate the number of the threat, but playing this mod without headphones is really harsh !  :-)

  6. On a side note: Aren't shaders only over-writable? I don't remember any modding api for shaders.

     

    Yup, you're right, my shader black an white is ready but I can't manage to aply it only to player with Blind trait, so I did'nt added it yet, I need to find a way  :???:

  7. Hi all ! I am here to show you my second mod for Zomboid, this time, it's a trait mod that will allow you to play a blind character !  :-D

     

    Soon, the game will feature 5.1 sound and much more ambiant sounds like zombies footsteps, etc... So I decided to give you the ability to play a blind character, to focus more on sounds. I think this mod will be way more interesting when the new update will hit  ;-)

     

     

    Mod First Release 1.0

     

    qEYLXoo.png

     

     

    Features :

     

    - You can pick a new trait that allows you to play a blind character

    - The blind player has a really tiny "seeing" sight where you can see zombies even behind you

    - You can't de-zoom + everytime you look away the screen gets darker (keep your cursor close to your player while sneaking !)

    - You have excellent hearing

     

     

    Troubleshooting and planed features :

     

    - Doesn't work in local co-op (sorry... It's planned)

    - Black and White vision with shaders is also planned

     

     

    Changelog :

    Version 1.0 (release)
    - New Trait to play a blind character

     

     

    Workshop Link :

     

    https://steamcommunity.com/sharedfiles/filedetails/?id=546189296

     

    Pz-Mods Link :

     

    http://pz-mods.net/gameplay/blindtraitmod/

     

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

     

    Feedback is appreciated, Blind trait is currently a +15 Trait, but I think it's a bit tiny, I may increase it to 18, what do you think ?

  8. Soooo, after a long time testing, it appears that we can modify shaders, and that's cool... But the downside is that sharders are coded in .vert / .frag files while the rest is coded in lua code. So even if I can modify values directly and make the shader I want, I cant use a condition like player:hasTrait("colorblind") to modify the shaders under certain circumstances.

     

    So for now I don't see how I could use the special shader I have created in a mod, it's a bit sad, and if you have any ideas on how to modify the vec3 / 4 shaders values from lua code, I'm all ears. But I don't think shaders code and lua mods are compatible  :???: I hope it will be possible in a near future  :-)

  9. I found a trick by overiding the function called to save the player profession :

    function CharacterCreationProfession:initPlayer()	-- get the trait you want and add it to the player traits table before saving it	local fromFactoryTrait = TraitFactory.getTrait("EagleEyed");	local newTrait = CharacterCreationProfession.instance.listboxTraitSelected:addItem(fromFactoryTrait:getLabel(), fromFactoryTrait);	newTrait.tooltip = fromFactoryTrait:getDescription();	-- The Indie Stone standard code for saving the profession	MainScreen.instance.desc:setForename(MainScreen.instance.charCreationHeader.forenameEntry:getText());	MainScreen.instance.desc:setSurname(MainScreen.instance.charCreationHeader.surnameEntry:getText());	if self.listboxProf.selected > -1 then		MainScreen.instance.desc:setProfession(self.listboxProf.items[self.listboxProf.selected].item:getType());    else        MainScreen.instance.desc:setProfession(self.listboxProf.items[0].item:getType());    endend

    BUT : Now I need to do it when the player has selected the trait needed to activate this passive trait, but this means a if condition on the player traits, but I can't use .hasTraits oviously because the player is not created yet... 

     

    It also seem to be that the selected traits are only accessible via an iterator in the listboxTraitSelected table, should I do a "for" on the list and check names until I find the trait, or is there an easier way to work around this problem ?

  10. Hi all, thank you for taking the time to read this

     

    I would like to enhance traits to make traits combinaison with modifyer. The Idea is to create a trait exclusive to the one he is composed and then use the "hasTrait" function to enhance it.

     

    Simple Example :

     

    In the trait code

    Trait "Extremely Noisy Handyman" Excusive to ("Handy","Clumsy")

    When the player click on "PLAY"

    player.addfreetraits(clumsy)player.addfreetraits(handy)

    When the player build something

    if player:hastrait(Extremely Noisy Handyman) {    play a custom noise;    make as much noise as a gun shot;} 

    But I simply fail to add new traits to the player, at the end of character creation or enven during the game  :???:

     

    Any Ideas, leads on how to add these traits ? Thanks for helping  :-)

  11. I searched and I have found two ways to do it if you search for a way to do it :

     

    The two next examples are used to force full zoom on the player, the value for it is 0.5, you may find the zoom value you want with :

    getCore():getZoom(playerNumber)

    "clean" way is all about finding the zoom value you want and prevent the user from changing it by doing the exact oposite action :

    --Force constant zoomif (getCore():getZoom(playerNumber) > 0.5) then	getCore():doZoomScroll(playerNumber, -1);end

    But this technique makes a zoom in zoom out effect that could be disturbing so you could use this method (less clean because you mess up with people's settings)

    -- Enable ZoomgetCore():setOptionZoom(true);getCore():zoomOptionChanged();-- Zooming at maximumgetCore():doZoomScroll(0, -4);-- Disable ZoomgetCore():setOptionZoom(false);getCore():zoomOptionChanged();

    If you use this code and have any questions, feel free to contact me  :-)

  12. Hi fellow modders and dev,

     

    I wanted to know if we can manipulate the shaders with mods ? or are they to deep inside the game code like moodles ?

     

    I would love to be able to manipulate colors and contrasts in order to make a light sepia filter to make a early 60's apocalypse themed mod, or maybe a daltonian-friendly filter ! Or a green colored filter with high contrast for night vision glasses !  :-)

     

    I have a lot of ideas but don't have the time to start something and then leave it because it is not moddable for the moment.

     

    Let me know if we can work with shaders and how much it's modable. And if you already have worked with it, can you give me some advices ?  ;-)

  13. Hi guys,

     

    I'm curently working on a vision diseaes related mod and I would love to be able to add it some overhauls by controling the zoom (lock it, change it etc...)

     

    I'm searching for example the code I could use to "lock" the zoom really close to the player for example  :)

     

    But I don't know wich function I should call to prevent the player from de-zooming when he has lost his glasses for example...

     

    Anyway, hope you guys could give me some leads  :-)

  14. So I have read the mondoid earlier and I saw something about our dear dragons...

     
    I think because we use 3D Isometric view, I’ll go for Ultima Online’s Dragons.
    I mean, ok, I’m a fan of Lord British, but taming dragon guys, TAMING DRAGON!
     
    Ok, that won’t be easy, first you’ll need to survive 6 months the Winter is Coming challenge, then go straight to the Mall to survive Opening Hours for 8 weeks, and then, we’ll see..

     

     

    I looked upon my saves and here we are  :-D

     

    http://image.noelshack.com/fichiers/2015/35/1440448260-exibit1.png

     

    http://image.noelshack.com/fichiers/2015/35/1440448239-exibit2.png

     

    tumblr_m5odepfgdw1qcq7oa.jpg

     

     

    Your move RJ  ;-)

  15. I love it! Thank you alot :D as payment once I get home I will try to make your own spiffo plushie yayy tell me if you have any ideas how you want it to look ♥

     

    Oooh that's so kind of you :D I want it to be just like me, with glasses, a dowel in one hand and a ham... Oh wait, just like that :

     

    1439902924-spiffoonkeen.png

  16. polite dev request: could we maaaaybe not have fuck fuck fuck as the example line? Totally cool if not, but seems a bit strong for the Workshop pane to me. Up to the mod creator overall though  :) ]

     

    Ah ah you're right and I understand, I thought the same thing but it was the best screenshot I got that really fits the square so I got lazy sorry, I did a new one  ;-)

     

    As for Batsphinx's request, ANARCHY!

     

    Anarchy or Not. The choice is yours  ;)

     

    fv81tyw.png

  17. I hate to double dip, but could you also do one for Let Me Speak?

     

    Ah ah don't worry it's fine, I'm working on it, should be ready tonight

     

    + Great mod by the way, I often thought having a chat box in single player to make my character talk to himself was lacking while playing singleplayer, but having contextual speech is even better  :-D

×
×
  • Create New...