Pages: 1 [2] 3
|
|
|
Author
|
Topic: StarmapJS: an interactive Star Control 2 starmap. (Read 16265 times)
|
|
Defender
Enlightened
Offline
Gender:
Posts: 817
|
I see...oh well.
|
|
|
Logged
|
|
|
|
|
|
|
|
onpon4
Enlightened
Offline
Gender:
Posts: 709
Sharing is good.
|
Oh, it's a good bit more related than THAT, though only syntactically. You can look at code segments and be able to rule out all languages except javascript and java.
Unfortunately, I have very little knowledge in Javascript and incomplete knowledge of Java, so I don't have a whole lot of ammunition to argue. However, since you're arguing syntax (which, sure, is kind of similar), let me point out that, just as both of these have syntax kind of similar to C, Game Maker's GML does too, but you wouldn't say GML is "related" to C, would you? Heck, GML also supports Pascal-like syntax, so is it "related" to Pascal, too? Just because a certain code segment can look identical in two languages doesn't mean the languages are similar at all, especially when you're talking about such a popular style of syntax as C-style.
Of course, there's nothing inherently wrong about using syntax as a basis for how "related" two languages are, but how useful is it, really, when GML, a duck-typed, interpreted scripting language, can be called "related" to C++, a statically typed, compiled general-purpose language?
|
|
|
Logged
|
|
|
|
Megagun
Enlightened
Offline
Gender:
Posts: 580
Moo
|
Say, does anyone know how I could get a Project 6014-version of the Planetary Database? I'm assuming that it's an automated process largely based off of the game code, but I'm not awesome enough with C to be able to pull it off myself without pulling my hairs out a few times. Can anyone (Elestan?) enlighten me on this subject? It could make p6014-development a lot easier.
|
|
|
Logged
|
|
|
|
Death 999
Global Moderator
Enlightened
Offline
Gender:
Posts: 3874
We did. You did. Yes we can. No.
|
Okay. More to the point, Javascript's syntax was consciously modeled on Java, and not C... hence the name.
Maybe it would be fair to say that Javascript is Java's adopted kid, or something.
|
|
|
Logged
|
|
|
|
|
|
storyyeller
*Many bubbles*
Offline
Posts: 101
|
What parts of the planet generation code did P6014 modify? If it's just the seed, then it might be worthwhile to rewrite the planet generation in Python or something. That way you can play with different seeds and see the results, without having to recompile UQM every time.
|
|
|
Logged
|
|
|
|
|
Megagun
Enlightened
Offline
Gender:
Posts: 580
Moo
|
Hmm. I've tried getting a standard PlanetInfo file by making the debugHook point to DumpUniverseToFile, but whenever I press the Debug key the DumpUniverseToFile function doesn't get called at all, even though the other stuff that I have assigned to the Debug key does happen (I get new ships, see all Spheres of Influence, etc). I don't see anything related to the DumpUniverse thing at all either in stderr or stdout. With some printing to stderr/stdout I've determined that debugHook isn't ever not NULL (in starcon.c) but I don't know how to solve that little problem.
|
|
« Last Edit: April 15, 2012, 05:46:46 pm by Megagun »
|
Logged
|
|
|
|
Elestan
*Smell* controller
Offline
Posts: 431
|
IIRC, threading issues require the dump to be delayed until your next hyperspace transition. Try hitting the debug key, and then leaving the star system.
|
|
|
Logged
|
|
|
|
Pages: 1 [2] 3
|
|
|
|
|