Jump to content

Lindor

Sacred Game Modder
  • Posts

    1,100
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by Lindor

  1. Both pages have been created by Flix, one in 2015 and one in 2017
  2. Why are there two pages for the same thing? https://www.sacredwiki.org/index.php/Sacred_2:Seraphim_Genesis_Set https://www.sacredwiki.org/index.php/Sacred_2:Genesis_Siderea
  3. type: BONUS_SPEED BONUS_SPEED_LIMIT spez: SPEED_ANY SPEED_ATTACK SPEED_ATTACK_MOUNTED SPEED_CAST SPEED_CAST_MOUNTED SPEED_MAX SPEED_WALK SPEED_WALK_MOUNTED SPEED_CAST_MOUNTED and SPEED_WALK_MOUNTED are not present in any game versions blueprint.txt. I got them by looking at the dll files. You can create a bonus with the SPEED_WALK_MOUNTED spez and attach it to your mount in creatures.txt to increase your mount movement speed. Or you can give yourself the bonus through other means, like e.g. armor or a skill. I once knew the difference between BONUS_SPEED and BONUS_SPEED_LIMIT, ut I have forgotten. The latter one is e.g. what in_in_eifer uses (inquisitor's frenetic fervor).
  4. I have broken parts of my arm in an accident and probably won't be as active in the next time.
  5. Well both. This has never been part of the game and is something completely new. Depends on your perspective. Something like this should work the way it was coded in the original game, but it didn't on PC, it only worked on console. Console and PC use sometimes different kinds of shaders so I figured I could backtrace the error, but I couldn't, there is no logical explanation up to this point why it doesn't work on PC. The game just won't accept SURFACE_FLAG_TENERGY for this itemtype no matter what you do. So instead I was able to backtrace the exact pixel shader which is responsible for the SURFACE_FLAG_TENERGY-effect and script my own shader which applies the effect to the surface which uses the shader. It's a workaround to get the game into rendering the FX without using the flag. Pixel Shaders take coordinates and textures as input and give you one or more rgba colors as output. Most of the time the input textures are specified in surface.txt, but sometimes, like e.g. for surface flags, it's hardcoded, so I had to guess the input textures. If you are however willing enough to experiment through all the different textures of the game to figure out exactly what textures SURFACE_FLAG_TENERGY uses (or if you're skilled enough to read it from the dll's), then there's (with one exception I'll talk about later) no difference between how it's originally suposed to work and this, so you could consider this a fix. If you just use my guessed textures, then there might be a slight difference and you could, depending on your perspective, this either consider as a mod or a fix. There's one difference however which I allowed myself to make as I would personally consider this a 'fix': The shader I use is responding to the alpha channel. For the original surface flag, it was 'all-or-nothing', meaning that it was hardcoded that beyond a certain alpha channel threshold of the input diffuse texture, the fx would gain a fixed amount of opaqueness, ~90% I'd say, and below that threshold it would not get rendered. My effect however directly gains the opaqueness of the input diffuse texture's alpha channel. Personally I'd conider this a fix, but you could very well consider this a mod if you're absolutely purist and want to push it to the extreme.
  6. Hmm. That would be a reasonable explanation why higher tier items have higher weightedprob. I guess we were wrong all along. Nice job!
  7. : I can confirm that the entire file is structured like that. If higher values made items more likely to drop, we would see legendaries all over the place. And: Maybe you simultaneously tempered with some other value like zrareexpectation or so? Because if weightedprob really increased the drop likelihood, we're in trouble. For ages everybody thought the opposite.
  8. Version 1.0.0

    20 downloads

    Following the idea of this post: I have exported a complete itemtype tier distribution for every itemtype existent, sorted by classification and weargroup. Basically it tells you what tier an item on average is that uses this itemtype. Might be very useful when you want to create new items based on already existing itemtypes. It's useful if you have an item tier in mind but no itemtype as well as the other way around if you have an itemtype in mind but no item tier. Exported using some lua code, not done manually. Itemtypes are based on latest EE. Have fun
  9. Full Itemtype Tier Distribution View File Following the idea of this post: I have exported a complete itemtype tier distribution for every itemtype existent, sorted by classification and weargroup. Basically it tells you what tier an item on average is that uses this itemtype. Might be very useful when you want to create new items based on already existing itemtypes. It's useful if you have an item tier in mind but no itemtype as well as the other way around if you have an itemtype in mind but no item tier. Exported using some lua code, not done manually. Itemtypes are based on latest EE. Have fun Submitter Lindor Submitted 02/13/2024 Category Community Patch  
  10. ... FLAG_HAS_WORLDOBJECT_RS = 16777216; FLAG_CLICKTHROUGH = 33554432; FLAG_EXCLUDEFROMNAVIGEN = 67108864; FLAG_NO_ANIM_OPTIMIZATION = 134217728; local newItemType = {} --------------------------------------------------------------------- -- Itemtypes --------------------------------------------------------------------- newItemType = { -- standard info renderfamily = "RENDERFAM_CREATURE", family = "FAMILY_CREATURE", subfamily = "SUBFAM_LIFE_HUMAN", classification = "CLF_DEFAULT", flags = "FLAG_HASHAIR + FLAG_HASBLINKANIM + FLAG_HASSOUND + FLAG_HASPREVIEWIMAGE + FLAG_NO_ANIM_OPTIMIZATION", weargroup = "WEARGROUP_SERAPHIM", -- 3d model + animation info model0Data = { name = "models/heroes/seraphim/c_sera_skin.GR2", user = "WEARGROUP_INVALID", }, -- logic bounding box logicBox = { minx=-9.623, miny=-8.72, minz=0.12, maxx=12.52, maxy=13.248, maxz=72.018, }, dangerclass = 0, } mgr.typeCreate(1, newItemType); ... If the flags are stored as global integers, why are the flags stored in the itemtypes as Strings? Did you ever wonder that? To me this looks like an exporting mistake. Did someone ever try to remove the quotation marks? From this: flags = "FLAG_HASHAIR + FLAG_HASBLINKANIM + FLAG_HASSOUND + FLAG_HASPREVIEWIMAGE + FLAG_NO_ANIM_OPTIMIZATION", To this: flags = FLAG_HASHAIR + FLAG_HASBLINKANIM + FLAG_HASSOUND + FLAG_HASPREVIEWIMAGE + FLAG_NO_ANIM_OPTIMIZATION, ? What happens?
  11. I have written a script that is averaging out the item tier for each jewelry itemtype so I know which itemtypes I can use when creating new jewelry of a tier. Sorted by itemtype: Sorted by tier (rounded): EDIT: I don't know if this is useful, but if we just use the items with fixed boni, uniques, sets, legendaries etc., we get the following distribution: 7147 sticks out, dntknw why EDIT2: This is the distribution I will probably use, this time the itemtypes are sorted (ascending) EDIT3: Changed my mind
  12. Uhmm.. I have jewelry with ome bonusgroups containing all kinds of boni. I go ingame and notice that all rings the combomaster sells have the same bonus. To make matters worse, some have more boni than the blueprint has bonusgroups. I don't know what is happening. I prepare a darkmatters post. Then I notice bonusgroups can be put on stuff through typification.txt. I thought that I had thought about this and the overhaul would redirect every existent ID to the new ID. CLF_RING has bonusgroupID = 261. ID is non existent pre-overhaul, but got taken post-overhaul. The redirection failed because of this, so all rings get a new bonusgroup. Notice to anyone using this tool: check typification.txt for leftover bonusgroup IDs after enabling. The game is trolling me.
  13. It's the other way around. Higher values make the item more rare. Two items, one with weightedprob=50 and one with 150, the 50 will drop 3 times more often compared to the 150. EDIT: also for impact: minquality > zrareexpectation > weightedprob So weightedprob has the least amount of impact. Haven't figured out expecttype yet.
  14. Can you create https://www.sacredwiki.org/index.php/Sacred_2:drop.txt and explain your detailed knowledge? Also https://www.sacredwiki.org/index.php/Sacred_2:Sacred_2_-_Item_Drop_Mechanics I'd bet this is pretty outdated by know. Also could be made less discussion-like and more wiki-like, more structured. But anybody can improve this once you drop.txt knowledge is there. No need to hurry and feel free to reject.
  15. 2 Bug reports: mgr.createDroplist(1460 ...) has duplicate entry101 German Localization uses Alternate Spells module locales in spite of the module being not active More reports might follow
  16. Do you mean my mod or this project? Because this tool, the Blueprint.txt function, most certainly works with PFP. You just need to know how to use it. A lot is explained however. Enable.exe brings PFP into the overhaul state. Then you can start modding in modules/modding and run Update.exe until you're satisfied. Once you're reade to publish, run Disable.exe. Enable.exe is a one-way-ticket, so you should do a backup before enabling. I was wondering if there was any interest outside of the few modders remaining. I was hoping someone totally new would show up and say "hey, I'm interested". It does not seem so. I agree as well. I was trying to get more people interested into modding by developing my modding tools and wiki pages. The Reddit idea is actually really great, I support that. There are so many issues The darkmatters download section is not very well structured, honestly it's a mess. Why not structure everything by dependencies? E.g. I never know where to upload my tools to. They're not CM or I&B or EE specific. The section really needs to be restructured. There are not many people with modding knowledge and even fewer who frequently edit the wiki Lacking presence in other social media, Reddit, YouTube, Facebook, Twitch etc. I know there's the wiki youtube and facebook accounts, but they're not really relevant No community events and if there are, nobody seems to be interested. Just look at Frank Rentmeister's Post. 10 years back I would have been heart rate levels of amazed at the opportunity to play Sacred: Underworld with an actual dev as @FrankRentmeister but now? Sacred Gold is stoneage old, unbalanced and PVP is all kinds of broken. Modding is nearly impossible without speaking assembly and having some basic knowledge of huffman coding and cryptography. I see why there's so litte interest nowadays. In order for it to become relevant again, Sacred: Gold needs to be remade from scratch so it becomes modifiable. And with a better Underworld Storyline. Underworld was a huge disappointment for me. Learn from the mistakes of the german forums Sacred Legends. I don't know exactly why. But I know it's slowly dying. My Analysis would be smth like: The posts are irrelevant they can't even answer the most beginner questions ever without a 20 posts discussion about the game version. if you seek expertise, there is none. Well there's FooBar, but that doesn't count as this is general expertise, not Sacred 2 specific expertise. Seriously, some of them like the forums admin have been there for now like 20 years and they can't even answer the question why some armor has a regen penalty while some doesn't. Overall everybody is super strict, toxic and, well, german, when it comes to guidelines and behaviour. They're in a constant state of raised index finger. The community is the very definition of toxic positivity. There is no modding. There is not even a modding forum. All they're doing is hosting the files from darkmatters for download, and sometimes not even the latest. That's it. I don't want to be inpolite, but darkmatters is as old as Sacred. We all depend on the Admins, @gogoblender and @Schot. What happens if you want to go to your well-deserved retirement like Flix? Do you have a plan? Are there any 'heirs'? We can learn from those mistakes. You need an active community. You need to allow disagreements. Off-Topic is fine as long as there's more main-topic than off-topic. Be structured and have expertise. Be open to new people. Don't wait three months to answer a question, even if it has been asked before. Don't make cancel culture a thing. Have many Moderators and at least two Admins. And honestly, you're doing a great Job. But I feel like we soo reach another turning point in the darkmatters history. Darkmatters needs to be gowing. And one more thing. I get that the page gets financed by advertisement. What about an official DarkMatters youtube channel? What about searching for volunteers explicitly tasked on producing content and administrating the channel? I mean the wiki youtube channel has been a success in the beginning, hasn't it? Could bring some money. I can help by increasing the overview of the wiki. That's my thing. I can also answer questions and give general modding support if I have the time and interest to do so. But someone needs to get attention to it, why modding is so cool, why the game is still relevant, maybe make some online tutorials on how to mod and what you can achieve. Bring visions, bring interest, bring a feeling of accomplishment to the people. We need to work together to create a rich and active modding environment. Both are important, modders and non-modders, but look at sacred legends, if the modders go away, the entire community does. Modding means change, and change means life, and life is the opposite of death. Not every problem regarding modding has been solved yet. E.g. this: Creating new surface FX is possible. but creating new spell FX? One would need to do that in the compiled source code of the game directly. Or export a lua script from the dlls like has been done with questscripts.txt. Incredibly hard task. Some more things: Creating new boni Modifying the damage calculation function making level trasition possible without dismounting Writing a Saced 2 specific GR2 Import/Export PlugIn for Blender recolorize fen fires generally reconstruct the source code from the exe and dlls, maybe in future AI can do this formatting the questscripts (has been partially solved by me, maybe I'll upload v2.0alpha questscripts.txt bundle) GUI based editors, blueprint.txt editor, FX editor, model&texture editor, bonus editor and so on... These are so incredibly hard tasks, no wonder they haven't been solved yet. But the human lives for the challenge, the accomplishment, the honor, that's what drives us. We need more skilled people. We could design lectures, tutorials, tasks with sample solutions and an entire education system if we wanted to. We're not a company. We don't pay people here. If we did, there would be legal issues with the company holding the Sacred 2 license. I don't know why I'm in the mood of writing so much today, but I'll stop right here before this post gets larger than the Pyramids.
  17. I know that there were roughly three versions planned, v1, v2 and v3 I know that the current stage is v1 and v2 never got released. I know that v1 had issues which I wanted to fix for v2 before making v3. I know that I was very close at finishing v2 when I decided that it wouldn't be worth the time an I could just straightly jump to v3. I know I have had an idea for a better lua code beautifyer for v3. I had a very specific idea and wanted to code it entirely different to what I had for v3. I just can't remember the idea anymore.
  18. I Intro This is by far the most advanced and massive project I ever made, not even the lua formatter for questscripts.txt comes close. I use it for my own mod which will come out someday even if it takes me another decade. But I made it before becoming a developer. It is hard to use; you have to understand what you're doing, there are some README files and documentation but for everyone besides me, it's hard to figure out what this tool even does, what the intention is in the first place. The source code of this project has been recovered with the help of the HxD software, so there can and will be updates. But I don't know wether I will make the tool easier to use; it's hard enough to improve the functionality. II The state of this project - what does this tool do? This project aims at automatic bonusgroup generation for items, automatic usagebits generation and automatic ingame bonus tooltip color generation. It blows up your blueprint.txt to ~100000 lines of code which would never be humanly possible to script by hand. All items have been sorted into different files in modules/modding/items, there are the ones with fixed boni and the ones which get their boni generated by this overhaul. Basically for every bonusgroup of every item it generates a unique bonusgroup which exactly fits the usage of the item. One of the key functionalities of this project is to figure out the usage of the item by looking at the itemtypes of the item. If it detects certain keywords, e.g. in the GR2 model name, it knows which blueprintset this item is belonging to, e.g. the seraphim ancient set, and then automatically sorts the item into the group. Internally, the ancient set is flagged as AspectTwo, so it will generate boni which fit AspectTwo, so it generates an Itemtype-Weargroup-Relation and an Itemtype-Classification-Relation which is saved in modules/automatically_generated. III The issues of this tool Now the biggest issue with the mod (apart from it altering potions boni) is the sad truth that it classifies everything where it can't find any keywords for as "generic". therefore jewely e,g, only will get generic boni. And this is bad. My workaround in the past has been to manually create jewelry in the modules/items/fixed_boni folder. But that defeats the purpose of this tool. IV Plans for the Future I want to fix that. I want to change it so that one can manually specify classifications in modules/automatically_generated which the tool will respect and I want to make it that every item can have multiple classifications. It will help me in the future for developing my own mod. This is no easy task. It might take a while given the small amount of time I have compared to a couple of years ago. Also I am thinking about my free time more, not spending everything on coding nowadays anymore. But I want to get it done. And it will get done. What I don't know is wether I can do what I initially envisioned this project to become: A GUI-based item editor. V My fears Sacred 2 is old. Flix Lord of Mods has left the game. I haven't seen Dmitriy Lord of Code for months. Active modders I'm aware of include @Vishanka, @idbeholdME, @Hooyaah and myself. That's it. Who am I making this for if nobody sees/uses this? An item editor would be awesome. It would be a big help for new modders and those who want to become it. It would maybe arise attention to Sacred 2 modding. But if the game dies, who am I making this for? I don't need to simplify the usage of this tool for myself. I know how to use it. I made it. VI The poll So I'm specifically asking you: how much interest is there? Are you even interested in the project per se? Would you use it? Would it be worth my time simplifying this tool's usage? Or should I just focus on myself, use this tool to create my mod to be finally able to play the game the way I like and then follow Flix in making a silent fade-out? Thanks in adance and for reading through.
  19. If we limit the highest exponent to 2 and say we want the function to be a fraction of two polynomials, this is the entire set of all the functions which satisfy the wanted properties: Numerator: c * (x^2 - 2 * x^2 * y^2 + y^2) - 2 * x^2 * y^2 + x^2 * y + y^2 * x / Denominator: c * (x + y - x^2 * y - y^2 * x) - x^2 * y - y^2 * x - 2 * x * y The one I posted above is for c = -1 It also works for the limit as c goes to infinity After all this, it's funny because I still think just taking the max is best. It's the best compromise between calculation intensity and beauty. If you don't care about complexity, I think a value of c = -0.5 would probably look best.
  20. I have finally found what I was looking for and it is beautiful f(x, y) = ((x^2)(y-1)+(y^2)(x-1))/(2xy-x-y) Has all the properties wanted: => f(x, x) = x => f(0, y) = y => f(x, 0) = x => f(1, y) = 1 => f(x, 1) = 1 => f(1, 1) = 1 => f(0, 0) = 0 (in the limit from the positive side)
  21. Oh that's what you mean. Each itemtype has a material of material.txt assigned, the material e.g. specifies how it sounds if it gets hit or walked on etc. I thought you meant that. Classic misunderstanding. For your question let me quote Flix: It should be noted that this doesn't always work, e.g. the Fen Fires don't have their FX assigned to the model. For them it's a hardcoded link to the surface. But most of the time, you can use grannyviewer to figure out which surfaces the model expects.
  22. The material for each itemtype is specified in iteminfo.txt. I don't know what happens if you specify multiple iteminfos for the same itemtype, but I guess that most likely the one furthest down the script will overwrite all others. In order for there being multiple materials for an item, I think one would need multiple itemtypes for an item, like it's e.g. the case with the armored spiders. The saddle of the spider mount has a different itemtype than the body e.g., 13341=saddle, 13342=body. But I don't know wether achieving this for a blueprint.txt item is possible. E.g. "dagger_1h_normal" has multiple itemtypes, but I don't know wether, like for the spider, they all come together to create one model or the game just randomly picks one if the item drops.
  23. I'm curious. Are there any interesting colors / texture combinations which you did come up during experimenting? Would love to see some more of your work
×
×
  • Create New...
Please Sign In or Sign Up