G3DEditor - 3D GeoEditor

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Forsaiken
L2j Veteran
L2j Veteran
Posts: 99
Joined: Sun Mar 11, 2007 6:23 pm

Re: G3DEditor - 3D GeoEditor

Post by Forsaiken »

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 ;)
http://code.google.com/p/g3d-editor/
Experienced in the following languages/apis/ides: Java using Eclipse/AWT/Swing/NIO/JNI/Jogl, C/C++11/c++14 using QT/MFC/BOOST/STL/VS2012/VS2013/OpenGL/DirectX, Delphi using Borland, .NET/C# using VS2012/VS2013
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Post by jurchiks »

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!
Discussion breeds innovation.
Forsaiken
L2j Veteran
L2j Veteran
Posts: 99
Joined: Sun Mar 11, 2007 6:23 pm

Re: G3DEditor - 3D GeoEditor

Post by Forsaiken »

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
http://code.google.com/p/g3d-editor/
Experienced in the following languages/apis/ides: Java using Eclipse/AWT/Swing/NIO/JNI/Jogl, C/C++11/c++14 using QT/MFC/BOOST/STL/VS2012/VS2013/OpenGL/DirectX, Delphi using Borland, .NET/C# using VS2012/VS2013
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: G3DEditor - 3D GeoEditor

Post by Zoey76 »

You can always put ThePhoenixBird to work :lol:
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.2.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Post by jurchiks »

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!
Discussion breeds innovation.
Forsaiken
L2j Veteran
L2j Veteran
Posts: 99
Joined: Sun Mar 11, 2007 6:23 pm

Re: G3DEditor - 3D GeoEditor

Post by Forsaiken »

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?
http://code.google.com/p/g3d-editor/
Experienced in the following languages/apis/ides: Java using Eclipse/AWT/Swing/NIO/JNI/Jogl, C/C++11/c++14 using QT/MFC/BOOST/STL/VS2012/VS2013/OpenGL/DirectX, Delphi using Borland, .NET/C# using VS2012/VS2013
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: G3DEditor - 3D GeoEditor

Post by MELERIX »

XX_YY_conv.dat
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Post by jurchiks »

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!
Discussion breeds innovation.
User avatar
godfreyouwens
Posts: 21
Joined: Wed May 11, 2011 10:49 pm
Location: CheeseLand USA !

Re: G3DEditor - 3D GeoEditor

Post by godfreyouwens »

Thank you !
janiko
Posts: 279
Joined: Thu Dec 27, 2012 8:35 am
Location: Georgia, Tbilisi

Re: G3DEditor - 3D GeoEditor

Post by janiko »

when i try to load geo file it shows black screen, ps on loading bat file i get this error

http://pbrd.co/ZNvOMr
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Post by jurchiks »

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!
Discussion breeds innovation.
janiko
Posts: 279
Joined: Thu Dec 27, 2012 8:35 am
Location: Georgia, Tbilisi

Re: G3DEditor - 3D GeoEditor

Post by janiko »

thanks it helped :)
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: G3DEditor - 3D GeoEditor

Post by u3games »

WTF? I format my pc, and install all. Win 7, 64. To download and open G3DEditor... error :S

Image
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: G3DEditor - 3D GeoEditor

Post by jurchiks »

That's the same error as janiko...
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!
Discussion breeds innovation.
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: G3DEditor - 3D GeoEditor

Post by u3games »

LoneRanger wrote:That's the same error as janiko...
UPS! Thx ^^
Image
Post Reply