Android Question SD XUI_View3D RemoveObj Error

PABLO2013

Well-Known Member
Licensed User
Longtime User
Greetings, I hope you are well. I want to delete an XUI_View3D object, but I get this error and I don't know how to solve it, thanks
B4X:
Sub Panel_Touch (Action As Int, X As Float, Y As Float)
    Select Action
        Case Activity.ACTION_DOWN
            LastX=X
            LastY=y
        Case Activity.ACTION_MOVE
            Dim Frac As Int = 5
            Dim ZFront As Int = 0
            Dim ZBack As Int = -20
            Dim Xi As Int = (LastX-Panel.Width/2)/Frac
            Dim Yi As Int = (LastY-Panel.Height/2)/Frac
            Dim Xf As Int = (x-Panel.Width/2)/Frac
            Dim Yf As Int = (Y-Panel.Height/2)/Frac
            P3D.AddPolygon(   1     ,Array As Point3D_Type(P3D.CtP(Xi,Yi,ZFront),P3D.CtP(Xf,Yf,ZFront),P3D.CtP(Xf,Yf,ZBack),P3D.CtP(Xi,Yi,ZBack)),xui.Color_Gray,xui.Color_White).RenderToView(Panel,Panel.Width/2,Panel.Height/2,1,1)
            LastX=X
            LastY=y
    End Select
End Sub

B4X:
Private Sub Button1_Click
Dim location As List
location.Initialize
location.Add(    1      )
P3D.RemoveObj(location)
End Sub

B4X:
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
** Activity (main) Resume **
Error occurred on line: 1378 (Object3D)
java.lang.NumberFormatException: For input string: "(ArrayList) [[IsInitialized=true, X=-41.0, Y=3.0
, Z=0.0], [IsInitialized=true, X=-40.0, Y=3.0
, Z=0.0], [IsInitialized=true, X=-40.0, Y=3.0
, Z=-20.0], [IsInitialized=true, X=-41.0, Y=3.0
, Z=-20.0]]"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:538)
    at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:695)
    at b4a.example.object3d._removeobj(object3d.java:4028)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:205)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:7259)
    at android.view.View.performClickInternal(View.java:7236)
    at android.view.View.access$3600(View.java:801)
    at android.view.View$PerformClick.run(View.java:27900)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7559)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
** Activity (main) Pause, UserClosed = true **
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Are you using a modified version?
I remind you that it is not allowed to modify the library even if it is in the B4XLib version.
There is no RemoveOBJ method in my library.
 
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
Thanks, so how can you delete an id, without not to change anything from the original, thanks
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I certainly can't fix a mistake of something I didn't write and don't know the content.

It is clearly written that they should not be opened on the first post.
If a feature was missing you should have asked for it on the thread like you do for compiled libraries and not hacked my sources. I do not tolerate this behavior, you will no longer receive assistance on any of my libraries
 
Last edited:
Upvote 0

PABLO2013

Well-Known Member
Licensed User
Longtime User
Sorry, don't pirate anything...it was public when I arrived, you clearly indicated that there was no support for your library and if something was changed exploratively (reason for being from this forum) it was not to affect anyone, just implement it in a small project from a single user ... me .... you are very valuable but fundamentalist
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
it was public when I arrived,
It was clearly written that the source should not be opened. All the rest are alibis.
Even the fact that it provides assistance doesn't justify you opening the code without authorization.

And you also ignored the sentence where I say that I don't give assistance, because you have repeatedly asked me for assistance on the library and you have obtained it. So that's just excuses.
you are very valuable but fundamentalist
I'm not a fundamentalist. You are the one who has committed a serious violation.
As a moral principle, gratitude for the fact that I make a similar tool available for free should have prompted you to respect copyright. Your behavior and reasoning are unbecoming

I have reported this to the proper authorities.
 
Upvote 0
Top