Jump to content
The Dark Mod Forums

AlexDiru

Member
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AlexDiru

  1. But the problem is where should "inv_droppable" be defined? I'm not too use about the structure of things, but if it's defined in the .map file it works, but in a .def file it fails. For example, the lockpicks are defined in tdm_defs01.pk4/tdm_shopitems.def: entityDef ShopItem_playertools_lockpick_set { "inherit" "atdm:shopitem_base" "editor_usage" "Lockpicks" "displayName" "#str_02389" // Lockpicks "displayDesc" "#str_02276" // A set of tools for opening locks." "itemClassname" "atdm:playertools_lockpick_triangle" "itemClassname1" "atdm:playertools_lockpick_snake" "image" "guis/assets/purchase_menu/lockpicks" "price" "20" "stackable" "0" } With no "inv_droppable" attribute. And in the prologue9.map (A New Job FM), there are no lockpicks defined. So as far as I know lockpicks aren't marked as "inv_droppable", though it's likely just in a different file. With the "inv_droppable" attribute in the .map file for the Volta Test, everything works as expected:
  2. Ok so I have a minor fix for this problem, I can't really go any further until I have more confirmation of how things should be organised. In "test.def", the entity which shouldn't be droppable is defined as: entityDef veil_stone { "inherit" "atdm:playertool" "editor_displayFolder" "interactables/special" "editor_usage" "The Stone" "editor_color" "0.078 0.914 0.600" // model "model" "models/volta/special/veil_stone.ASE" "density" ".5" "bouncyness" "0.01" "mass" "20" //Inventory "frob_distance" "75" "inv_droppable" "0" "notPushable" "1" "inv_name" "The Stone" "inv_icon" "guis/assets/hud/inventory_icons/icon_stone" }And in the .map file there is: // entity 16 { "classname" "veil_stone" "name" "veil_stone_2" "inv_map_start" "1" "origin" "89 -94 86" "rotation" "1 0 0 0 1 0 0 0 1" }Items are loaded into the shop using CShop::AddPersistentStartingEquipment() in particular: if (!itemMerged) { CShopItemPtr anItem(new CShopItem(*found, quantity, 0, false)); bool canDrop = itemDict->GetBool("inv_droppable", "1"); //This is always returning true (by default) - the dictionary cannot find "inv_droppable" or "inv_icon" or etc anItem->SetCanDrop(canDrop); _startingItems.Append(anItem); } However, the itemDict refers to the entity defined in the .map file rather than the .def file. So if "inv_droppable" "0" is added to the .map file entity, the drop button will be removed for it // entity 16 { "classname" "veil_stone" "name" "veil_stone_2" "inv_map_start" "1" "origin" "89 -94 86" "rotation" "1 0 0 0 1 0 0 0 1" "inv_droppable" "0" <----- I can't make this bold but this is the key line }Now I'm not sure whether the inv_droppable should be defined in the .map entities or the .def entities, so I need some confirmation regarding this And now I need to go to bed now, it's past 2AM
  3. Awesome Sent him a PM
  4. Thanks I'm looking to fix this bug for now as practice http://bugs.thedarkmod.com/view.php?id=4587 Do you (or anyone else) know of any missions which have items you can't drop that you start with? The included missions don't seem to have any I can test with
  5. Hi, I'm Alex Spedding I'd like to help in the development of TDM if I'm needed. I'm near the end of a PhD in Computer Science and have a lot of time on my hands before I start a job. I've always wanted to create a stealth game, and this morning I checked out my game I was making a year ago (Unreal Engine) and it was a complete mess and made me sad and then I closed Unreal Engine. Then I looked into writing my own engine - which would take way too long. Then I realised I can offer my skills to an open source project so why not this one! Currently I've just downloaded the latest stable build and got 4 out of 5 building (not MayaImport), and I'm going to look through the code and try to understand the basic structure of it all. Regarding my previous work my Portfolio, GitHub and Twitter are available. Though for the latter I haven't done any gamedev for a while so it's not as good as the other too. Also if there are any books you'd recommend regarding the idTech Engine or just stuff that will help for learning the codebase, please suggest away
×
×
  • Create New...