Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Worebu

#16
GLBasic - de / Tapatalk
2021-Mar-21
Moin Leute,
ich habe gesehen das hier einige Tapatalk benutzen. Ich kann mich nicht im GL Forum über Tap anmelden und bekomme eine Server Fehlermeldung. Wie sieht es bei Euch aus ? Könnt Ihr euch über Tap im Forum anmelden?
#17
GLBasic - de / Re: Playsound
2021-Mar-14
Das wars, vielen Dank.  :booze:
#18
GLBasic - de / Playsound
2021-Mar-14
Moinsen,
kann man bei Playsound zur Laufzeit die Lautstärke einstellen?
Über eine Button oder so? Ich habe die Werte geändert aber nix ist passiert.
ein Tip wäre schön  😉

Einen schönen Sonntag noch.
#19
Guter Tip, Danke.
#20
GLBasic - de / Fehlermeldung
2021-Feb-28
Moin,
kennt jemand diese Fehlermeldung oder Warnung?

E:/Games/steamapps/common/GLBasic_SDK/Compiler/platform/Win32/bin/ld.exe: .rsrc merge failure: duplicate leaf: type: 10 (VERSION) name: 1 lang: 409

Ein Tip wäre schön

Worebu
#21
Meine Schulzeit ist aber 40 Jahre her.
#22
Hmm,
da ich kein abgeschlossenes Mathe Studium habe und nur so ein Hobbyprogrammierer bin hast Du mir leider nicht helfen können.
Aber ich danke Dir dafür das Du dir Gedanken über mein Problem gemacht hast.

Worebu
#23
Hi,
das ist erstmal nur ein Test. Das soll eine Entfernungstabelle von fiktiven Orten sein,
nur das die Entfernungen  Random sein sollen. Ich  bekomme das mit dem füllen nur nicht hin.


Ein Feld das so gefüllt ist:


http://www.auslandversicherungen.de/entfernungstabelle.html



Hast Du eine Idee?

Worebu
#24
Moin,
ich möchte mal eine fiktive Entfernungstabelle erstellen und die Tabelle mit Random zahlen füllen.
Was eigentlich kein Problem ist, aber wie bekommt man das hin das die Entfernungen stimmen?

Also von A nach A oder B nach B usw. ist logischerweise immer null, aber wenn ich die Tabelle komplett fülle
habe ich Werte die nicht stimmen. A nach Z  hat einen anderen Wert wie Z nach A.

Jemand eine Idee?

Schönes WE.


So ungefähr.

    A B C

A  0 5 9
B  5 0 7
C  9 7 0



#25
Sorry, mein Fehler,  hatte lese$ noch mit DIM lese$[] stehen.  :S

Trotzdem Danke, hätte es wohl übersehen.
#26
GLBasic - de / Fehlermeldung
2021-Jan-10
Moin,
was möchte mir der Interpreter wohl mitteilen?

Quote
_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.15.394 SN:c4f1f6f1 - 3D, NET
Wordcount:11 commands
compiling:
F:\Temp\glbasic\gpc_temp0.cpp: In function 'int __GLBASIC__::__MainGameSub_()':
F:\Temp\glbasic\gpc_temp0.cpp:27:9: error: no match for 'operator=' (operand types are '__GLBASIC__::DGStrArray {aka __GLBASIC__::DGArray<__GLBASIC__::DGStr>}' and '__GLBASIC__::DGStr')
lese_Str=INKEY_Str();
         ^
In file included from F:\Temp\glbasic\gpc_temp.h:2:0,
                 from F:\Temp\glbasic\gpc_temp0.cpp:1:
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:641:18: note: candidate: __GLBASIC__::DGArray<T>& __GLBASIC__::DGArray<T>::operator=(const __GLBASIC__::DGArray<T>&) [with T = __GLBASIC__::DGStr]
         DGArray& operator=(const DGArray& a) {
                  ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:641:18: note:   no known conversion for argument 1 from '__GLBASIC__::DGStr' to 'const __GLBASIC__::DGArray<__GLBASIC__::DGStr>&'
F:\Temp\glbasic\gpc_temp0.cpp:28:18: error: ambiguous overload for 'operator+' (operand types are '__GLBASIC__::DGStr' and '__GLBASIC__::DGStrArray {aka __GLBASIC__::DGArray<__GLBASIC__::DGStr>}')
chip_Str=chip_Str+lese_Str;
                  ^
F:\Temp\glbasic\gpc_temp0.cpp:28:18: note: candidate: operator+(DGInt {aka double}, DGInt {aka double}) <built-in>
F:\Temp\glbasic\gpc_temp0.cpp:28:18: note: candidate: operator+(DGNat {aka int}, DGInt {aka double}) <built-in>
F:\Temp\glbasic\gpc_temp0.cpp:28:18: note: candidate: operator+(int64 {aka long long int}, DGInt {aka double}) <built-in>
In file included from F:\Temp\glbasic\gpc_temp.h:2:0,
                 from F:\Temp\glbasic\gpc_temp0.cpp:1:
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:269:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(int, const __GLBASIC__::DGStr&)
DGStr operator zz (int a, const DGStr& b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:271:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, const __GLBASIC__::DGStr&)
DGStr operator zz (int64 a, const DGStr& b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:273:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(float, const __GLBASIC__::DGStr&)
DGStr operator zz (float a, const DGStr& b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:275:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(double, const __GLBASIC__::DGStr&)
DGStr operator zz (double a, const DGStr& b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:283:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, const __GLBASIC__::DGStr&)
DGStr operator zz (const DGStr& a, const DGStr& b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:284:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int)
DGStr operator zz (const DGStr& a, int b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:285:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int64)
DGStr operator zz (const DGStr& a, int64 b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:286:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, float)
DGStr operator zz (const DGStr& a, float b); \
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:287:7: note: candidate: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, double)
DGStr operator zz (const DGStr& a, double b);
       ^
E:\Games\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:288:5: note: in expansion of macro 'MK_OPERATOR'
     MK_OPERATOR(+)
     ^
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Dauer: 1.4 sek. Zeit: 16:36
Erstellen: 0 erfolgreich.
*** 1 FEHLGESCHLAGEN ***

Das wird nicht mit 11 Zeilen Code zusammen, oder?

Hat jemand eine Idee?

#27
Guter Tip, leider bekomme ich das mit dem Grabben nicht hin. Habe immer einen schwarzen Sprite.


Code (glbasic) Select

// --------------------------------- //
// Project: Fadenkreuz
// Start: Wednesday, December 23, 2020
// IDE Version: 16.508


SETCURRENTDIR("Media") // go to media files

GLOBAL mx, my,b1,b2,dx,dy
GETDESKTOPSIZE dx,dy
SETSCREEN dx,dy,1
DRAWRECT 0,0,dx,dy,RGB(255, 0, 128)
GRABSPRITE 1,0,0,dx,dy
LOADFONT "smalfont.fnt",1
SETFONT 1,2


WHILE TRUE

DRAWSPRITE 1,0,0
MOUSESTATE mx,my,b1,b2
GOSUB fk
SHOWSCREEN
WEND
//
// ------------------------------------------------------------------
// ---  FADENKREUZ -
// ------------------------------------------------------------------
SUB fk:

DRAWLINE mx, 0 , mx  , dy, RGB(255,255,255)
DRAWLINE 0 , my, dx,   my, RGB(255,255,255)
PRINT mx + ":" + my, 20,20

ENDSUB // FADENKREUZ_ENDE


wo liegt da wohl der Fehler?

Hilfe würde helfen, Danke.
#28
GLBasic - de / Transparenz
2020-Dec-23
Moin,
ich möchte eine Anwendung haben die über dem Desktop läuft, genauer gesagt ein Fadenkreuz um Positionen abzulesen. Funzt alles , ich bekomme bloß keine Transparenz hin, so das das Desktop sichtbar ist.
Jemand eine Idee?

Frohe Weihnachten, Gute Rutsch und schöne Osterfeiertage .
#29
OK, so hab ich auch mal gemacht, wollte nur wissen ob das praktikabel ist. Also ja. Danke und einen schönen Abend.
#30
Seit gemoint liebe Gemeinde,

ich habe mal wieder eine Frage. Sollte man bei einem Projekt alles in SUB's / Funktionen machen, oder einzelne Dateien schreiben ?

Schönes WE  :booze: