|
Maps & Scenarios Battlegrounds and scenarios |
|
Thread Tools | Search this Thread | Display Modes |
#61
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
In doing the VirtualScape export, I've discovered that the first piece of data in the .HSC file is a version number. There seem to be 7 distinct versions of .HSC files, but what is troubling for my export tool is that I can't find any differences between the 5th and 6th versions... Regarding the export tool--here's where it is at: I think I've figured out everything there is to know about .HSC files (with the 5th/6th version caveat listed above) and my tool can read them in and spit out a plain text version. For example, the export of Snowy Peak creates a text file that starts off like this and contains all of the data in the .HSC file: Code:
Name: Snowy Peak Author: Fen_Hydra Players: 2 ===================================================== Scenario: 1 ROTV 1 SOTM 1 BFTU 1 TJ 1 FOTA 1 TT. This map is intended for a 2-player game of 400-1000 points (24 start marked, but yellow start is optional.) All glyph placements are optional. ===================================================== Print Levels/page: 4 Print Transparency: 80 Print Grid: 1 Print Tile Number: 0 Print Start As Level: 1 Number of Tiles: 387 Num Ver Type Rot X Y Z Gl rrggbb Start Name blank 1 3 Grass/24 0 9 20 0 00a000 2 3 Grass/24 180 8 17 0 00a000 3 3 Grass/24 0 22 17 0 00a000 4 3 Grass/24 180 22 14 0 00a000 5 3 Grass/24 0 14 17 0 00a000 6 3 Grass/24 180 16 17 0 00a000 7 3 Rock/24 0 17 11 0 aaaaaa 8 3 Rock/24 180 13 23 0 aaaaaa 9 3 Swamp/24 300 25 25 0 6f6915 10 3 Swamp/24 120 10 9 0 6f6915 11 3 Swamp/7 0 15 14 0 6f6915 12 3 Swamp/7 0 19 23 0 6f6915 13 3 Swamp/7 0 23 23 0 6f6915 14 3 Swamp/7 0 11 14 0 6f6915 15 3 Swamp/7 0 15 10 0 6f6915 16 3 Swamp/7 0 19 27 0 6f6915 17 3 Swamp/7 0 28 22 0 6f6915 18 3 Swamp/7 0 6 15 0 6f6915 19 3 Swamp Water/1 0 22 11 0 ded22a 20 3 Swamp Water/1 0 9 15 0 ded22a If anyone wants a copy of this early-version tool, PM me with your email address. There is nothing more dangerous than sincere ignorance and conscientious stupidity. --MLK |
#62
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
VirtualScape is faaaaaarr superior in 3D rendering, so i never felt the needs to develop SS more. Anyway, i can send the source code of my .SOL loading function... you will have to bear with italian comments, but i guess it is not so hard to understand that VB code. Did you try to contact Zzzzzz (or who is mantaining VirtualScape right now)? i did a lot of time ago and he sent me the code related to the files... i dunno if i still have it and if i can share it: i just want to say that Zzzzz was a kind guy and willing to cooperate. I'll search my HD one of these night and throw here what i'll found. |
#63
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
Quote:
Quote:
I just love the look of Gary's SVG (plus the fact that Javascript can manipulate it which could help with creating more online tools), so getting more maps to them would be great. Really the biggest "problem" is that most maps are PDF and trying to parse the images of the map layers will be an order of magnitude more difficult problem for this export tool... There is nothing more dangerous than sincere ignorance and conscientious stupidity. --MLK |
#64
|
||||
|
||||
Re: What the Hex is Hexskape?
Ok, i've found my code.
It is a bit messed up, and i had not an XML parser, so i was treating the whole .sol file as an unique string and i tokenize it recursively extracting the various tags (yes, i am just so insane). So, i guess that it is better to explain what i do instead of just throw here the code (but if you want it i can share it anyway). As it can be tedious for the most readers, i'll hide it so the thread will not be too long.
Spoiler Alert!
|
#66
|
||||
|
||||
Re: What the Hex is Hexskape?
Nothing wrong--I just won't get a chance to work on the .sol file importer until probably AFTER next week, so it will be sometime after that that I actually complete it. Your post was informative and I'm sure will be very, very helpful in creating that, saving me lots of time. Thanks!
In other news, If all goes well, next week I should have a website up where people can upload Virtualscape files and the website will generate an instant online view of the maps (using GaryLASQ's SVG), and also generate v1.0 Hexskape XML files for downloading. The online preview should be handy for folks who just want to see a map that is only available in VirtualScape format, but they can't (Macintosh) or don't want to install VirtualScape. ..and as I mentioned above, sometime after that goes live, I will be adding support for .sol files. I might even add an option to create a VirtualScape file from a .sol file, but I'm not sure yet. There is nothing more dangerous than sincere ignorance and conscientious stupidity. --MLK |
#67
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
I'm not getting the time I wanted to work on Hexskape. Plus, I'm still rethinking some of the structure. Just as one example, instead of <layer><level>...</level></layer>, I'm thinking about changing this to just <step>...</step> as in an "assembly step". But, like I mentioned earlier, in an ideal world, this community would collaborate on a standard Heroscape XML specification (kinda like the way the W3C organization works on standard specs for the Web). But that takes time and effort. Quote:
Last edited by GaryLASQ; May 5th, 2011 at 06:43 PM. |
#68
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
Using various <layers>, optionally hidden, can allow to build the same map with differents sets (poor ppl like me are still building brigdes with standard pieces and underneath paperclips), just changing the tiles that compose the levels of the layers. I admit that this feature can be the less needed at all, but why negate it? Hi, Gary, it is a long time from out last talk |
#69
|
||||
|
||||
Re: What the Hex is Hexskape?
Yes, too long.
Quote:
I'm toying with the idea of not requiring the <level/> element because it can be determined by knowing the step and position of placement of a tile (or other terrain object, or stack of objects). No time right now to explain in more detail. I'll come back to that later... |
#70
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
C3V/SoV cards @ 3/page PDF / LeftOn4ya's Customs (including Jurassic World) / Competitive Unit Alters / New? Start Here! Unit Debates REVIVED - #76 Tandros Kreel vs Torin "Today is a good day to die... but the day is not yet over"
|
#71
|
||||
|
||||
Re: What the Hex is Hexskape?
Quote:
Quote:
Question, could it work both ways? Could the tool read an XML file and create a .HSC file for VS? Xorlof, if you are able to devote time to this again, you may want to start your own thread called something like "VirtualScape Export/Import Tool" perhaps. |
|
|