Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 18, 2004 23:34:07 GMT
Here's some good news (especially for that lazy Natmus ;D): - domain painting (just select domain and go nuts
)
- M/MU SQL and Map now work as expected
- program will ask to save a project before exiting (if something was changed)
Get it from the Lair and enjoy!
|
|
|
Post by sparrowhawk on Jul 19, 2004 8:05:52 GMT
Looking good, looking good! One bug, which is MU specific: In the Save as SQL->M/MU specific tab, you have the X column listed as MPD_Row and Y column as MPD_Column. They should be the other way around? Thank you for your continued support!
|
|
Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 19, 2004 8:32:39 GMT
Looking good, looking good! One bug, which is MU specific: In the Save as SQL->M/MU specific tab, you have the X column listed as MPD_Row and Y column as MPD_Column. They should be the other way around? You're absolutely right. Da.mn, how I hate these obvious bugs! There are still few other bugs in the code, which I found after (thank you Murphy!) releasing this version. One is nasty: don't create an empty project and then turn domain painting on - you'll get infinite access violations. Only killing the unimapgen process will stop it. Another one, pretty annoying, you'll get when you have actual window displayed, then go to map generation wizard and try to move it's window above actual view window. You'll get "List index out of bounds" error. Not always, though - map dimensions in MGW must be bigger than actual working dimensions. No, thank you for the great game! Oh and, I'm still waiting for GD (is it read GoDot?)! ;D ;D ;D
|
|
|
Post by sparrowhawk on Jul 19, 2004 9:02:09 GMT
Oh and, I'm still waiting for GD Could I take a look at your code? I'll create a seperate development fork to investigate using your code in the gfx engine rather than the current html version. I was going to try to do it myself, but I may as well learn from a master - (you'll get full credit of course!) One thing: I need to make sure that UKLinux can support the GD functions that you use for your demo (they're rather behind the times in their PHP version!)
|
|
Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 19, 2004 9:21:58 GMT
Could I take a look at your code? I'll create a seperate development fork to investigate using your code in the gfx engine rather than the current html version. I was going to try to do it myself, but I may as well learn from a master - (you'll get full credit of course!) I think I sent it to you, but no prob, I'll send it again. And I'm no PHP master at all. You're a real pro, not me. I suppose there's no special stuff I used in creating the demo. I'll send you a little scriptlet for getting info about gd.
|
|
|
Post by sparrowhawk on Jul 19, 2004 9:33:52 GMT
Got it, thanks
|
|
Natmus
Morkin Admin
Fight the power!
Posts: 4,518
|
Post by Natmus on Jul 19, 2004 13:34:36 GMT
Very nice feel, Igor.
I've remade my small map with domain names. Jean-Yves, if you can find the time, could you please download it from the Yahoo site (Files Section > MU > domains.upf ) and see if the domain names I have entered will work in M/MU format. If not, is there some kind of rule of how names must be in?
|
|
Matija
Morkin Member
The Turtle Moves!
Posts: 1,696
|
Post by Matija on Jul 19, 2004 17:48:41 GMT
Very nice, Igor.
I have noticed a few minor bugs:
Remember the last entered domain preference doesn't seem to work.
If domain painting is turned on, it seems that only the last entered domain can be painted (it would be nice if you could choose the domain you want to paint in the domain window).
If you then use right click to set domain, painting no longer works, until you choose it again (I suggest it is automatically turned off if you do some other action).
Domain painting can not be turned off with the toggle domain painting button (but one can use the paint terrain button for that purpose).
|
|
Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 19, 2004 20:24:25 GMT
Thanks! Yeah, there are always some left, da.mn them. ;D Yeah, only last description works. Will be fixed. This one is funny thing - domain painting works perfectly under Win2k (OK, not perfect but it works almost as it should), but under WinXP it doesn't. I'll try to find where the problem is and fix it. True. Will be fixed. Btw, you suggest or suppose? This is not true under Win2k (toggling works OK), but let me check it under WinXP... No, it works fine. I must admit that I haven't as thoroughly tested domain painting, as I usually do. I will fix these (and few more) errors ASAP. Sorry for any inconvenience.
|
|
Matija
Morkin Member
The Turtle Moves!
Posts: 1,696
|
Post by Matija on Jul 20, 2004 5:20:07 GMT
That's curious. On my computer, when I turn on the domain painting - grey terrain, with domains coloured over - the map stays in that mode when I try to toggle it.
|
|
|
Post by sparrowhawk on Jul 20, 2004 7:17:53 GMT
Very nice feel, Igor. I've remade my small map with domain names. Jean-Yves, if you can find the time, could you please download it from the Yahoo site (Files Section > MU > domains.upf ) and see if the domain names I have entered will work in M/MU format. If not, is there some kind of rule of how names must be in? Mads, I meant to reply yesterday and forgot. Sorry about that. The Domain names are fine. Spaces are no problem so they will work fine. When you generate your final export, could you set your Scenario ID to 4 in Unimapgen (if Iggy has not released a fix by then, please make sure that you change the X and Y field names around) A note for all future scenario makers (I need to discuss this with Iggy too in more detail): getting your map online is now really easy thanks to the wonderful work of Iggy, but adding lords and their garrisons takes a lot of time. eg adding 7 lords and 4 garrisons to the Sun's End scenario (Matija's) took well over 1.5 hours, although some reformatting was necessary in that exercise that is no longer required. So although ideally UMG will one day support the creation of lords and garrisons (Iggy, if you would like to add this support I can provide you with the SQL necessary, but I daren't push my luck too far), please spare a thought for the poor old developer! Also, please provide lord names and locations, including race and starting riders/warriors, as I don't have to stare blankly at the screen trying to think of new names Note to Matija: I hope that you like the ones that I created, but feel free to change them - it's your scenario after all.
|
|
Matija
Morkin Member
The Turtle Moves!
Posts: 1,696
|
Post by Matija on Jul 20, 2004 7:40:31 GMT
I can't wait to have a walk through the land of Sun's End. And I'm sure the lord's names are great. And in a week or two I hope to have my large map ready. I've done all the details in the southern part (apart from a half of descriptions that still need to be entered), but in the north there are still only major mountain ranges, forests and citadel postitons.
|
|
|
Post by sparrowhawk on Jul 20, 2004 8:13:58 GMT
Your large map? Uh oh! Here are some SQL sample INSERT statements for you to populate the template tables for lords and garrisons: For lords: insert into LRD_Lords (LRD_ID, LRD_SCN_ID, LRD_ShortName, LRD_Name, LRD_Row, LRD_Column, LRD_Direction, LRD_RAC_ID, LRD_Gender, LRD_Riders, LRD_Warriors, LRD_Mounted, LRD_GraphicFile) values (LRD_ID, LRD_SCN_ID, LRD_ShortName, LRD_Name, LRD_Row, LRD_Column, LRD_Direction, LRD_RAC_ID, LRD_Gender, LRD_Riders, LRD_Warriors, LRD_Mounted, LRD_GraphicFile)
Field info: - LRD_ID = unique numeric key, going up by one each time. Ask me for the starting value and keep adding 1 to each subsequent row
- LRD_SCN_ID = the scenario ID, same for each row - again, ask me for the value when you're ready
- LRD_ShortName - eg Kor
- LRD_Name - eg Kor, Keeper of the Dark Gates (but can be same as short name of course)
- LRD_Row - the Y coordinate. Remember, if you've removed the frozen wastes border, you need to adjust
- LRD_Column - the X coordinate - adjust if no frozen wastes border
- LRD_Direction - the starting direction of the lord, one of: N,NE,E,SE,S,SW,W,NW
- LRD_RAC_ID - the race ID of the lord, see below
- LRD_Gender - M or F
- LRD_Riders - number of riders lord starts with - DON'T give riders to races that cannot ride (eg dwarves and giants). Must be 0 for wise, dragons and skulkrin.
- LRD_Warriors - number of warriors lord starts with. Must be 0 for wise, dragons and skulkrin
- LRD_Mounted - is lord on horseback? 1 for Yes, 0 for No - again, must be 0 for non-riding races such as dwarves, giants, dragons, skulkrin
- LRD_Graphic file. To work this out, use the Race description that I have detailed below, all lower case, and if female, add _female, BUT ONLY FOR RACES 1,2,3,7 .
For example, a female fey would be fey_female, a male wise would be wise, a female giant would be giant, etc.
Here are the values for LRD_RAC_ID (race ID) 1 - Free 2 - Fey 3 - Foul 4 - Wise 5 - Dragon 6 - Skulkrin 7 - Targ 8 - Dwarf 9 - Giant (not supported yet though, probably in 0.2b) For garrisons (the key field is not included as you don't need to worry about it): insert into GAR_Garrisons (GAR_SCN_ID, GAR_LRD_ID, GAR_Row, GAR_Column, GAR_Type) values (GAR_SCN_ID, GAR_LRD_ID, GAR_Row, GAR_Column, GAR_Type)
Fields: - GAR_SCN_ID - scenario ID - must be the same as above
- GAR_LRD_ID - the ID of the lord that this garrison belongs to - use LRD_ID in LRD_Lords above for match
- GAR_Row - the Y coordinate
- GAR_Column - the X coordinate
- GAR_Type - C for citadel, K for keep
Good luck!!!
|
|
Natmus
Morkin Admin
Fight the power!
Posts: 4,518
|
Post by Natmus on Jul 20, 2004 8:23:30 GMT
Mads, I meant to reply yesterday and forgot. Sorry about that. I'm glad you apologise, because you really hurt my feelings in not responding immediatly, and I was upset the whole of yesterday evening over it [FN1]. If you are interested, I can make an export of it, but I'm mainly using the little "Domains" map as a testing ground for Igor's program. Even so, I have had some thoughts as to it's inhabitants and stuff, so it could with some polish me made a playable map, if you want it. Regarding your instructions and the different options, I'm somewhat confused as what files you need as to make it playable. I saved it as an Midnight/MU file, which only created a small .php file. I tried saving it as a SQL file, but I'm not sure I could match your request regarding X and Y coordinates with the options in program (or where). Perhaps you could export it from the (updated) .upf file yourself, and I just append a description of my suggestions for lords and armies? Igor, I saved the thing as a HTML-map, which looks nice, but is without the combined feature and domain descriptions, so features only show up as 'plains' or 'mountain'. I think the fuller names should be generated on the HTML-map as well. BTW, when entering own names in the descriptions, should the names start with a "The" or not? [FN1] Nah, I'm just kidding ;D
|
|
|
Post by sparrowhawk on Jul 20, 2004 8:35:30 GMT
Regarding your instructions and the different options, I'm somewhat confused as what files you need as to make it playable. I saved it as an Midnight/MU file, which only created a small .php file. I tried saving it as a SQL file, but I'm not sure I could match your request regarding X and Y coordinates with the options in program (or where). I need both the .php file AND the SQL file. In fact, Iggy, you can drop the .php only export option if you like as I can't really do much with it. The reason I need both is speed. It's much quicker to scan the array to generate the view than hit the database and loop through a result set (I've tried it, it's very noticeable). But the SQL holds all the description info which is referenced much less frequently (eg character banner, seek) If it's ok with you, I'd rather wait for finished maps/lords etc. I have rather a lot on my plate at the moment with finishing touches to 0.2, which I hope to have out today (yes!!!) I have a script that will generate an html map of any of the scenarios in MU, so once your scenario is included, I can run it off for you. OK good, I'll put the rat poison back in the box then!
|
|