Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by Dirmagnos

  1. Remade whole thing from a scratch, turned out to be pointless, as game reads from everything presented in this folder, even tho i had all those reference files renamed and without extensions. Removed those and all started to work.

    Now i need to figure out how to make foraging custom items work and make cookable recipes(i presume it has something to do with evolvedrecipes.txt, but right now need to figure out how it works step-by-step). 

  2. Probably fairly simple issues, but i cant figure out how to get around them.

    First, id like to modify few existing items. If i just copy items.txt file into mod folder and do changes there, it works. But as i understand it is possible to make changes to only specific items, excluding those i do not need.

    So i created new file(id like to create separate files for each category, to make it easier to pinpoint problems and make changes), items_books_changed.txt, copied in there only book data, with all the usual stuff added. But apparently im missing something somewhere as upon loading i get errors(that i have no idea how to view) and i cant access crafting menu.

    module items_books_changed
    	item BookTrapping1
            NumberOfPages	=	220,
            Weight	=	0.8,
            Type	=	Literature,
            DisplayName	=	(Skill)Trapping 1,
            Icon	=	Book4,
            SkillTrained = Trapping,
            LvlSkillTrained = 1,
            NumLevelsTrained = 2,
        item BookForaging5
    		NumberOfPages	=	380,
    		Weight	=	0.8,
    		Type	=	Literature,
    		DisplayName	=	(Skill)Foraging 5,
    		Icon	=	Book10,
            SkillTrained = Foraging,
            LvlSkillTrained = 9,
            NumLevelsTrained = 2,

    Second problem is that im trying to add items to foraging activity. I found SGScavengeDefinition.lua, but this file do not state probabilities of items being found. Plus id like to add new category "junk" to the list, but im not sure how to do it. As when i just add new items to this file, nothing seem to happen as i never find items i added.

    edit: ok, wrong subforum, cant figure out how to delete topic.


  3. Ohh crap, those commas will be the end of me(this is what happens when you mess up one item and use it as basis for all the next ones). Found it.

    Thx for all the help... again.

    Now i need to figure out how to make all those containers stay without any actual containers in inventory. 8)

    Like a default inventory, where you dont have an container item, but do get an inventory.

  4. Thx a ton, worked great.

    But another stupid question.

    Mod is supposed to spawn 6 different items, but spawns only 2 bags and 4 "Blooo" objects.

    Do i need a timer or something ? Or should i go simply with 3 diffrent key for 3 different spawns(1 for each 2 bags) ?

    local function addItems(_keyPressed)	local key = _keyPressed; -- Store the parameter in a local variable.	print(key); -- Prints the pressed key to the console.	-- We test if the correct key is pressed.	if key == 210 then		local player = getSpecificPlayer(0);    -- Java: get player one		local inv = player:getInventory();      -- Java: access player inv		-- Java: add the actual items to the inventory		inv:AddItem("icontainers.Toolbag");		inv:AddItem("icontainers.MedicalBag");		inv:AddItem("icontainers.KitchenBag");		inv:AddItem("icontainers.BookBag");		inv:AddItem("icontainers.WeaponBag");		inv:AddItem("icontainers.SupplyBag");	endend-- This will be fired whenever a key is pressed.Events.OnKeyPressed.Add(addItems);
  5. Ive been at it for like 3 days and i have kinda hit the wall, like Chinas Great Wall, im completely out of ideas.

    I love the game, but in terms of sorting and organizing its a bust. Sure, its fairly easy when youre at your base surrounded by boxes/cupboards/crates/etc, but when out in the field its extremely basic. And juggling all those backpacks around is really really really annoying. Not to mention i really dislike to let go of my weapon with all those zeds wanting a hug.

    Ok, enough of crying.

    With realease of keyring(i play game on/off every now and then) i finally thought that i can get it, create containers/categories in player inventory without need to go thru 3-4-x bags to store items by categories.

    So i made a few containers with own icons(like medical bag for meds, or toolbag for tools), they dont give any weight reduction bonus, weigh nothing, and have (more or less)unlimited capacity, so they still depend on players own carrying weight. But they were supposed to act similar to keyring, giving me a subcontainers without needing to equip them as long as i have them in my inventory(even tho i dont like to clitter inventory with additional items, i cant see an alternative).

    And i completely failed there, they still need to be equipped, meaning whole thing was for nothing.

    Ideally id like an option to simply add subcategories in inventory. In a similar way that equipping container(like backpack) adds containers inventory on the right side of the inventroy. Or at least containers that dont need to be equipped(or can be equipped in some non-invasive theorectical slot like keyring). Or point me to script that deals with keyring being usable container without needing to be equipped.




    Pls tell me it can be done. And how it can be done.

    And i did try to search forum, but im coming up empty. Sorry for (maybe)stupid questions, but im at the end of my rope here and my gaming ocd demands actions.


  • Create New...