Will Posted December 4, 2009 Share Posted December 4, 2009 :D this is rich! Let's see how this pans out.[me=Will]grabs some popcorn...[/me] Quote Link to comment Share on other sites More sharing options...
Nyerguds Posted December 4, 2009 Share Posted December 4, 2009 If he'd had any spam links in his profile or sig I'd swear this guy was a bot.Still not sure he isn't Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted December 4, 2009 Share Posted December 4, 2009 Dump him in the desert on Arrakkis or whatever that place it called... the sandworm will be happy. ;D Quote Link to comment Share on other sites More sharing options...
mvi Posted December 4, 2009 Author Share Posted December 4, 2009 So anyone up for some tools testing? Getting to the stage where I could use some people trying out these tools before release. Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted December 6, 2009 Share Posted December 6, 2009 Did you get someone who can help? Quote Link to comment Share on other sites More sharing options...
mvi Posted December 6, 2009 Author Share Posted December 6, 2009 Afraid not Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted December 7, 2009 Share Posted December 7, 2009 Just release them? :) Quote Link to comment Share on other sites More sharing options...
mvi Posted December 7, 2009 Author Share Posted December 7, 2009 Trouble is they're liable to be buggy and I don't have the time to exhaustively test them Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted December 8, 2009 Share Posted December 8, 2009 Perhaps I can help with testing. What should I do? Quote Link to comment Share on other sites More sharing options...
Hunoa Posted December 20, 2009 Share Posted December 20, 2009 So anyone up for some tools testing? Getting to the stage where I could use some people trying out these tools before release.I can test. :D Quote Link to comment Share on other sites More sharing options...
AMIgaBot Posted December 21, 2009 Share Posted December 21, 2009 and me i have eoungh time for full test Quote Link to comment Share on other sites More sharing options...
mvi Posted December 26, 2009 Author Share Posted December 26, 2009 I'm hopefully going to finish off my mission file editor and write up my research formally as a PDF and release that. Got a big new project at the company I work at starting in a few weeks which will be high intensity so I doubt I'll have time to carry on with this Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted December 26, 2009 Share Posted December 26, 2009 That would be great. :)I understand if you don't have time because of work, I wish you good luck with the big project. :) Quote Link to comment Share on other sites More sharing options...
mvi Posted December 26, 2009 Author Share Posted December 26, 2009 I would love to devote more time to Dune 2000 but it's a question of finding the time (and quite often the motivation, when you're working at a computer all day long quite often the last thing you want to do when you clock off is more work on a computer as I'm sure a lot of you have felt.) Just some brief mentions on the mission file format.It is very important to regard what I formerly called "triggers" as conditions. They are most definately not triggers. As far as I can see there are various event types, such as a reinforcement, mission success, enemy unit spawn, message on screen etc. Each event then has some data specified about it, in the case of a reinforcement this will be where, what units, what house etc.. and in the case of a message this will be what message index to use. Now, each event also has two tables, one is a table of condition indexes which apply to it, the second is a table which flips the condition's necessary value when the second table index is true. Meaning you could link say a reinforcement event to a built Ix condition, or a fail mission event to a condition for the existence of a construction yard with the relevant second table byte representing a flip - so that the fail mission event would activate when the condition of the existence is not true.As previously mentioned, there is the capability for 64 events (each 72 bytes long) and 48 conditions (each 28 bytes long.)As also previously mentioned, the mission file contains a big AI section, which is split into 8 sections. Besides the first byte of each section, I have no idea how this AI data works, though it looks like it might be executable code which is loaded directly into memory.The 14th byte of each event is the event code.The 26th byte (that's two from the end) of each condition is the condition code.There are various condition codes, such as whether a building exists, and even some basic logic I believe (equivalent of an IF and an AND)It is also worth noting that the condition code and event code sets are different between campaign missions and multiplayer missions. The research I am doing does not touch the multiplayer mission files at all, and I don't intend to even glance at those files until the campaign missions are nailed 100%. That's assuming I'm still doing this stuff by that point of course. The mission file structure I'm currently using in my tools looks like the following C# code: public byte[] houseTechLevel = new byte[8]; public Int32[] startingMoney = new Int32[8]; public byte[] unknownRegion1 = new byte[40]; public byte[] houseIndexAllocation = new byte[8]; public byte[,] ai = new byte[8,7608]; public byte[,] diplomacy = new byte[8,8]; public byte[,] events = new byte[64,72]; public byte[,] conditions = new byte[48,28]; public byte[] tilesetImageName = new byte[200]; public byte[] tilesetDataName = new byte[200]; public byte unknownRegion2; public byte unknownRegion3; public Int32 timeLimit; public byte[] unknownRegion4 = new byte[692];Any questions on mission files please just ask. Quote Link to comment Share on other sites More sharing options...
mvi Posted December 27, 2009 Author Share Posted December 27, 2009 Made some progress with event and condition types. Also made a quick tool to convert a mission's event and condition tables to Microsoft Excel so that I could see what's going on and mess about with the format. Actually starting to get a picture of how a mission's logic works now. For example, in the O1V1 mission, I can plainly see in Excel that the second message event is dependent on two conditions. A timer, then a building exists check with the return value flipped. Meaning that the event gets carried out when the timer is true and the building does not exist.I can then look two lines below at the fourth message in that mission, and see it is dependent on four conditions. The first again being the same timer, then three building exists checks, with the third of these being a flipped condition. This means that the event gets carried out when the timer is the right value, the first two buildings exist and the third building does not exist. This is as it should be, as in game this message is shown when you have a wind trap, refinery but not a silo.Still got some event and condition types I'm unsure about, but now have all but two condition codes understood and half the events. Quote Link to comment Share on other sites More sharing options...
mvi Posted December 27, 2009 Author Share Posted December 27, 2009 Figured out a lot more now, also looking at the special indexes for maps, it might be there's some features still supported in code that didn't make it into the game that we can use.Also, there seems to be something to do with flags in the maps.Looks like the original level dev's may have been limited to 48 events and 36 conditions, before it was decided to up these limits to 64 and 48 respectively. So the levels like O9V1 have only 48 events and 36 conditions. This hopefully should mean modders can create more detailed levels than the original devs. Quote Link to comment Share on other sites More sharing options...
AMIgaBot Posted December 27, 2009 Share Posted December 27, 2009 question is. maps. we should have bigger. is there possiblity to override map size limit from 128x128 to higher?? in Reed Alert 2 there is override so u can have 225x225 instead of 164x164. and minimal is 50x50 for dune 32x32.and one more thing buldings/units limitings. i have made an map with plenty of structures but cannot use it because limit for example atreides units/structures is already used and i cannt start the game with huge fortess map.. houses again.. there is no sandworm house. the color between smuggler and mercenary is choam. Quote Link to comment Share on other sites More sharing options...
athanasios Posted December 28, 2009 Share Posted December 28, 2009 I agree, bigger maps would be very nice.Now, just adding more buildings won't make a scenario better. We should be selective to what we add and place it in the proper place to create an extra challenge and not to mess the rest. Quote Link to comment Share on other sites More sharing options...
mvi Posted December 28, 2009 Author Share Posted December 28, 2009 question is. maps. we should have bigger. is there possiblity to override map size limit from 128x128 to higher?? in Reed Alert 2 there is override so u can have 225x225 instead of 164x164. and minimal is 50x50 for dune 32x32.and one more thing buldings/units limitings. i have made an map with plenty of structures but cannot use it because limit for example atreides units/structures is already used and i cannt start the game with huge fortess map.. houses again.. there is no sandworm house. the color between smuggler and mercenary is choam. What's that got to do with mission files? Those limitations are built in to the dat file. Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted December 28, 2009 Share Posted December 28, 2009 Great news on the event and conditions, thanks. Will be awesome when we can adjust them and so adjust the missions. Keep us updated, also on the features that were not in the final game. :) Quote Link to comment Share on other sites More sharing options...
mvi Posted December 30, 2009 Author Share Posted December 30, 2009 Ah, hello there. Thought I'd drop an example of the events and condition table from Ordos Mission 1 Version 1 (O1V1.mis)The events have their conditional dependencies next to them.C style programming logical notation is used where && represents the AND logical operation, and the ! represents flipped the true-false value.So for example, taking the first event:If condition 3 is true and condition 17 is not true and condition 18 is not true, then this logical expression evaluates to true and the event is carried out. Whereby condition 3 is you having 2500 cash, unsure what the other two conditions are.Note, I've cut out a lot of the data to show what it does rather than all the specifics. And I may have made some mistakes either in my interpretation or writing it up from my paper notes. But you should be able to see how the mission events, conditions and logic works.Events0 - Mission Win - 3 && !17 && !181 - Unknown - 3 && !17 && !182 - Mission Loss - !9 && !10 && !17 && !183 - Unknown - !9 && !10 && !17 && !184 - Reinforcement - Ordos Harvester Replacement - !16 && !13 && 14 && 155 - Unknown - !16 && !13 && 14 && 156 - Unknown - 13 && !157 - Message - Build Concrete Slab - 68 - Message - Build Windtrap - 7 && !89 - Message - Build Refinery - 7 && 8 && !910 - Message - Build Silo - 7 && 8 && 9 && !1111 - Reinforcement - Ordos - 012 - Reinforcement - Harkonnen - 113 - Reinforcement - Harkonnen - 2Conditions0 - Interval1 - Interval2 - Interval3 - Cash Equals 25004 - Ordos Base Destroyed (Unused)5 - Ordos Units Destroyed (Unused)6 - Timer (Unused)7 - Timer8 - Ordos Windtrap Exists9 - Ordos Refinery Exists10 - Ordos Construction Yard Exists11 - Ordos Silo Exists12 - Ordos Windtrap Exists (Identical to 8 and Unused)13 - Ordos Harvester Exists14 - Timer15 - Unknown16 - Ordos Base Destroyed (Identical to Condition 4 but Used)17 - Unknown18 - Unknown Quote Link to comment Share on other sites More sharing options...
mvi Posted January 16, 2010 Author Share Posted January 16, 2010 Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted January 17, 2010 Share Posted January 17, 2010 That looks great. :) Is it automatic, like you could also load mission 4 from Harkonnen (just example) and get all the events and conditions? Or? Quote Link to comment Share on other sites More sharing options...
mvi Posted January 17, 2010 Author Share Posted January 17, 2010 All automatic, this is the pic for the mission you mentioned Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted January 17, 2010 Share Posted January 17, 2010 Awesome! :)But how do you add events and change the necessary conditions in your editor? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.