G3DEditor - 3D GeoEditor

Have you created a useful tool? or you want to get help building one... this is the right place
Forum rules
READ NOW: L2j Forums Rules of Conduct

Re: G3DEditor - 3D GeoEditor

Postby Forsaiken » Wed Jul 11, 2012 8:39 pm

jurchiks wrote:Looks cool. But the "Server Go" button arrow should probably point upwards, since it's an upload action (and the title/description of the button could be "Upload to server"; also, don't forget to open the server link settings if the link is not established yet). Then there could be a button "Download from server" - just in case you denied the initial request and changed your mind. It should probably save the opened file before downloading from server so as to not lose the changes (and the download goes into a temp/renamed file or directory).
And I do believe the `Add Server Link` button should open a tab in Settings, not an entirely separate window (if it's already like that - nvm).
If you got a disconnect a prompt apears asking you where to save the geo file

It should save the file on your HDD in any case, especially if it was downloaded from the server.
On this way you can load the saved geo while reconnecting :)

Just save a DIFF file between initial and last modified and use that accordingly (i.e. if you've been disconnected from the server and modified the file in the mean time, then reconnected, offer to upload the diff).

BTW, do you have a function "go to coordinates" somewhere there? I don't see it in the GUI...


Gonna make the connection to the server very simple. Just 3 fields with ip/port/password.
The geo can then be selected in the default open window where you can select the geo region.
In this window you can also fill in the coordinates of your disired position ;)

The button with "Server go" is from an icon pack. It does not contain an Symbol like that with the arrow upwarts and the CC license don`t allow me to modify the icons.

Storing the geo as an diff file...hm well i am gonna upload the geo block by block, so i could check if the block got updated by an hash value generated from that block and only upload this block in case it got changed.

We will see. I am gonna try different things and choose which one to take when testing it ;)
Forsaiken
L2j Veteran
L2j Veteran
 
Posts: 96
Joined: Sun Mar 11, 2007 7:23 pm

Re: G3DEditor - 3D GeoEditor

Postby jurchiks » Wed Jul 11, 2012 8:47 pm

the CC license don`t allow me to modify the icons.

http://creativecommons.org/licenses/by-nc-sa/2.0/
You are free:

to Share — to copy, distribute and transmit the work
to Remix — to adapt the work

Thus, it does not forbid you to make a NEW icon based on one in the icon set, which is especially easy if there is an icon with the server picture and no arrows or stuff on it.
And I also doubt the creator would be against it.

Alternatively:
http://www.iconarchive.com/show/servers ... -icon.html
http://www.iconarchive.com/show/servers ... -icon.html

Btw, what iconset is it you're using? I can't find a licence file or any info in the code about that...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
User avatar
jurchiks
 
Posts: 5388
Joined: Sat Sep 19, 2009 5:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Postby Forsaiken » Wed Jul 11, 2012 11:37 pm

jurchiks wrote:
the CC license don`t allow me to modify the icons.

http://creativecommons.org/licenses/by-nc-sa/2.0/
You are free:

to Share — to copy, distribute and transmit the work
to Remix — to adapt the work

Thus, it does not forbid you to make a NEW icon based on one in the icon set, which is especially easy if there is an icon with the server picture and no arrows or stuff on it.
And I also doubt the creator would be against it.

Alternatively:
http://www.iconarchive.com/show/servers ... -icon.html
http://www.iconarchive.com/show/servers ... -icon.html

Btw, what iconset is it you're using? I can't find a licence file or any info in the code about that...


In the creative comman license the author of the icons is free to decide if he allows modification or not ;)
And the author does not allow it^^ Gonna send him an email and ask :D
Forsaiken
L2j Veteran
L2j Veteran
 
Posts: 96
Joined: Sun Mar 11, 2007 7:23 pm

Re: G3DEditor - 3D GeoEditor

Postby Zoey76 » Wed Jul 11, 2012 11:58 pm

You can always put ThePhoenixBird to work :lol:
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
 
Posts: 3888
Joined: Tue Aug 11, 2009 4:36 am

Re: G3DEditor - 3D GeoEditor

Postby jurchiks » Thu Jul 12, 2012 8:28 am

Forsaiken wrote:In the creative comman license the author of the icons is free to decide if he allows modification or not ;)
And the author does not allow it^^ Gonna send him an email and ask :D

If he still won't allow modding, try asking him to make two new icons (green arrow upwards (upload to server), red arrow downwards (dl from server)).
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
User avatar
jurchiks
 
Posts: 5388
Joined: Sat Sep 19, 2009 5:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Postby Forsaiken » Fri Jul 13, 2012 1:44 am

I found an totaly impressive solution for the thingy with "downloading" the geo from server!
I won`t implement such a feature yet xD

Well my free time goes to an end (to quickly) :(
For now there will only be an upload button, but hey... thats enough to use this feature!

Ahh and i got an email reply allowing me to mod the icons :)
Gonna make one soon ;)


EDIT:
Btw...how was the file name pattern for l2off files?
Somehow i found out i got two patterns in my geo editor :(
"conv_X_Y.dat" and "X_Y_conv.dat"
Which one is correct?
Forsaiken
L2j Veteran
L2j Veteran
 
Posts: 96
Joined: Sun Mar 11, 2007 7:23 pm

Re: G3DEditor - 3D GeoEditor

Postby MELERIX » Fri Jul 13, 2012 2:39 am

XX_YY_conv.dat
User avatar
MELERIX
DP Team Leader
DP Team Leader
 
Posts: 6744
Joined: Sun Sep 24, 2006 12:31 am
Location: Chile

Re: G3DEditor - 3D GeoEditor

Postby jurchiks » Thu Dec 20, 2012 8:44 pm

A bugreport from another forum:
src/g3deditor/geo/GeoEngine.java#getHeaderOfL2jOrL2Off() at line 360 throws a StringIndexOutOfBoundsException if you try to load a non-".l2j" file (for example, an l2off .dat file).
The thing is, it does "if (name.equals(".dat"))" instead of "if (name.endsWith(".dat"))", and since the name is NOT exactly ".dat", it goes on and tries to cut a substring on line 366: "name.substring(0, name.lastIndexOf(".l2j"))". The lastIndexOf(".l2j") returns -1 because there is no ".l2j" in "xx_yy_conv.dat", and thus throws an exception.
If you don't support l2off ".dat" files, you should just refuse all other files except those that end with ".l2j"...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
User avatar
jurchiks
 
Posts: 5388
Joined: Sat Sep 19, 2009 5:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Postby godfreyouwens » Fri Apr 19, 2013 7:52 am

Thank you !
User avatar
godfreyouwens
 
Posts: 5
Joined: Wed May 11, 2011 11:49 pm
Location: CheeseLand USA !

Previous

Return to Tools & Tools Support

Who is online

Users browsing this forum: memento09 and 1 guest