Re: [nbos] [AS] Web Integration?David Loman Sun Jun 14th, 2009
I'll throw my $0.02 in here. I am in process of developing a browser-based
Scifi MMO and am using AS2.0 as my data editor. I have (after many hours
work) reversed about 90% of the AS2.0 file format so I can directly load a
.sector file into my game's framework.
In answer to your questions:
A) Um, no. In fact, that question doesn't even make sense, really. AS2.0
is a win32 executable, so if you are at the Webserver's terminal, or have a
RDC to it, then, sure, it will 'run' on a webserver. If you mean, "Can it
be embedded in a web page and served as a networked resource?" ...then no.
The only way I have though to accomplish such a thing is to write your own
app in Java using JavaMonkeyEngine (jME) and then use Webstart to distribute
the executable. However, Java is as secure as a child's piggy bank, so if
you are thinking of a pay to play game, Java is NOT your best choice for the
client. Not to mention that talk of coding an alternative to AS2.0 is
probably frowned upon on this mailing list :)
B) Expanding on what I mentioned above, I plan on using a flat
file/database hybrid storage mechanism. The .sector file will be maintained
in its original form since everything in it is static. I haven't written
the classes to do it yet, but I will eventually get around to being able to
write a .sector as well as read from it. This way I could update galaxies
and have them slowly move. Any other data IO, such as updating of custom
fields, would be foolish since disk IO would then become a game killing
bottleneck. That's what DB systems are for. Anyways, I digress.
The database part of the storage mechanism will contain all the variable
data directly related to player driven game state. Since all objects in a
.sector are keyed with a UUID, making relations from the DB to the .sector
file are easy.
To answer your ultimate question, Yes. It IS possible to use the data
generated by AS2.0, but not AS2.0. Besides, even if you could use AS2.0,
the licensing costs would probably outweigh the cost of 'coding it
yourself.' and would be recurring.
Anyways, there's my $0.02. Take it or leave it, matters not to me :)
Nbossoftware mailing list