Search found 255 matches

by username
Fri Sep 20, 2013 3:14 pm
Forum: Developer Notes
Topic: MapTool - Development - Java 6 vs Java 7 coding
Replies: 21
Views: 5290

Re: MapTool - Development - Java 6 vs Java 7 coding

Can you provide the stack trace of the class version error? A class that isn't used does not have it's (class) constructor run.
by username
Sat Sep 14, 2013 3:34 pm
Forum: Developer Notes
Topic: MapTool - Development - Java 6 vs Java 7 coding
Replies: 21
Views: 5290

Re: MapTool - Development - Java 6 vs Java 7 coding

Well. I don't have time to check this, but it used to work this way with Java 1.5 and 1.4, so I wonder why it should change with 6 and 7: if you can get the compiler (j6 or j7) to create j6 code, it will run a priori on a jvm6. If you make use of classes that are available only in jre7 (or libs that...
by username
Tue Sep 10, 2013 2:37 pm
Forum: Developer Notes
Topic: MapTool - Development - Java 6 vs Java 7 coding
Replies: 21
Views: 5290

Re: MapTool - Development - Java 6 vs Java 7 coding

java.version gves you the exact version (including patch level) while java.specification.version gives you the specification the impleentation complies with. I don't know, whether OpenJDK uses a different java.version prefix. So, yes, the specification version is probably better. With the exception ...
by username
Mon Sep 09, 2013 2:16 pm
Forum: Developer Notes
Topic: MapTool - Development - Java 6 vs Java 7 coding
Replies: 21
Views: 5290

Re: MapTool - Development - Java 6 vs Java 7 coding

I suggest you use

Code: Select all

System.getProperty("java.version")
instead of relying on exceptions. BTW, Azhrei's explanation of your problem doesn't explain a core dump. Are you sure you saw a core dump?
by username
Sun Jul 07, 2013 7:51 am
Forum: MapTool
Topic: Macro edit window default position
Replies: 10
Views: 1451

Re: Macro edit window default position

The x goes through a different path on the OS window manager than the ok and cancel. That may make the difference.
by username
Sat Jun 29, 2013 2:39 am
Forum: MapTool
Topic: NaN? What's with the limit on measuring distances?
Replies: 6
Views: 664

Re: NaN? What's with the limit on measuring distances?

Confirmed (b87). Better use the ruler, because at those scales the tokens become too tiny.
by username
Wed Jun 26, 2013 2:11 pm
Forum: Developer Notes
Topic: Does this compile in new Eclipse IDE + Java 7?
Replies: 7
Views: 2403

Re: Does this compile in new Eclipse IDE + Java 7?

But my point is that if "java -Xdoc:name=MapTool -jar MapTool.jar" does something "special" in the Apple version of the JVM that only works for Mac machines, the Windows/Linux versions should just IGNORE the darn same argument instead of blowing up!!! Read on the -X options. The...
by username
Wed Jun 26, 2013 10:58 am
Forum: Developer Notes
Topic: Does this compile in new Eclipse IDE + Java 7?
Replies: 7
Views: 2403

Re: Does this compile in new Eclipse IDE + Java 7?

The language is cross-platform. But the various OSes try to set themselves off from others. That includes providing features that look really necessary and cool but are not available elsewhere. So cross-platform either has to ignore those tremendously useful features (until the others have something...
by username
Wed Jun 26, 2013 1:12 am
Forum: MapTool
Topic: Learn to network over the Internet
Replies: 11
Views: 1153

Re: Learn to network over the Internet

But if ISPs are most likely to drop such packets and all routers you tested don't handle their own (external) IP correctly (I assume you tested a significant lot) then how can DynDNS still work for most people? But then, shouldn't the local IP stack be smart enough not to route it's own IP (even if ...
by username
Tue Jun 25, 2013 2:42 am
Forum: MapTool
Topic: Learn to network over the Internet
Replies: 11
Views: 1153

Re: Learn to network over the Internet

Edit 1: I texted my boyfriend and he says that he just directly connects to our external IP and ignores the warning message saying that it won't work because it does. I'm not sure how great that is, but it hasn't failed to connect yet. Then he's just gotten lucky so far. I wouldn't be surprised if ...
by username
Sun Jun 23, 2013 12:26 pm
Forum: Macros
Topic: Macro Button Colors; changing them with a click
Replies: 9
Views: 533

Re: Macro Button Colors; changing them with a click

I suspect it ends up "blue". Is that your "error"? If the button was blue, you change the color to yellow in the first line and then to blue in the second. If the button was yellow, the first line does nothing and the second line will change it to blue. (Any other color will rema...
by username
Sat Jun 22, 2013 7:22 am
Forum: MapTool
Topic: Players can't download assets associated with a certain map?
Replies: 3
Views: 698

Re: Players can't download assets associated with a certain

Seems odd enough. Post the error log from him *and* you. It may have to do with some strange router configuration that thinks it spotted a virus signature and drops it. Why it would let the chat pass, I can't tell. (In fact I can't "tell" anything, only "guess" that it is an odd ...
by username
Mon Jun 10, 2013 2:43 pm
Forum: Macros
Topic: if(roll option) vs. switch(roll option)
Replies: 12
Views: 855

Re: if(roll option) vs. switch(roll option)

I have to disagree with your statement that "micro-optimizing" is, in essence, not worth the time and that we should only consider the biggest issues. While I can agree that because the hardware MT is running on is different for each user and because we can never tell all the software or ...
by username
Sun Jun 09, 2013 2:47 am
Forum: Macros
Topic: if(roll option) vs. switch(roll option)
Replies: 12
Views: 855

Re: if(roll option) vs. switch(roll option)

Even for interpreted MTScript, JIT may optimze for these small statements. So many things depend on cache behaviour of the lower layers. And the caches are huge these days. :wink:
by username
Sat Jun 08, 2013 3:58 am
Forum: Macros
Topic: if(roll option) vs. switch(roll option)
Replies: 12
Views: 855

Re: if(roll option) vs. switch(roll option)

For the record: what you are doing here is called micro-optimzing. The way current programming languages are executed on real hardware today depends on many things, and compilers and virtual machines are heavily optimized in various ways. That makes it virtually impossible to make any reasonable for...

Go to advanced search