Recent Posts

Pages: [1] 2 3 ... 10
1
Announcements / Re: Comming up features
« Last post by bigsofty on Today at 01:28 AM »
Good find on the IDE. The compiler issue is harder. Can you redesign this piece of code, please  =D

I could.. but sometimes I reuse a variable within a block of code, so its not always viable to simply remove the declaration. eg. You will notice I've used the variable "m" twice here, on both occasions its a single type that represents a single material, so logically it makes sense. I could code around it with different variable names but isn't this coding around backwards compatibility?

Actually looking at my game code, I do this quite a lot unfortunately.  :'(

Gernot my opinion is this, this is just a "quality of life" improvement, my opinion is not to spend too much time on it if its causing you grief. By this stage I think every one had gotten used to self. anyways!  :good:

Code: (glbasic) [Select]
FUNCTION ReadFile: filename$
LOCAL f%,l$
LOCAL n%,t$[]
LOCAL i%
LOCAL m AS TMaterial
self.Destroy()
self.SetUp()
f%=GENFILE()
OPENFILE(f%, filename$, TRUE)
//DEBUG "Start read TMaterials.ReadFile("+filename$+") file >\n"
REPEAT
READLINE f%, l$
n%=SPLITSTR(l$,t$[]," ")
IF LEN(t$[])=0 THEN CONTINUE
SELECT t$[0]
CASE "newmtl"
DIMPUSH self.m[], m
self.m[-1].name$=t$[1]
CASE "Kd"
self.m[-1].red# = t$[1]; self.m[-1].green# = t$[2]; self.m[-1].blue# = t$[3]
CASE "Tr"
self.m[-1].alpha# = t$[1]
CASE "Ns"
self.m[-1].size# = t$[1]
CASE "#"
DEFAULT
ENDSELECT
UNTIL ENDOFFILE(f%)
FOREACH m IN self.m[]
m.combined% = ASL((m.alpha#)*255,24)+ASL(m.blue#*255,16)+ASL(m.green#*255,8) + m.red#*255
NEXT
//DEBUG "< End read material file\n"
CLOSEFILE f%
ENDFUNCTION
2
Announcements / Re: Comming up features
« Last post by Kitty Hello on 2020-Nov-26 »
Good find on the IDE. The compiler issue is harder. Can you redesign this piece of code, please  =D
3
Announcements / Re: Comming up features
« Last post by bigsofty on 2020-Nov-25 »
Code: (glbasic) [Select]
TYPE TX
    text$[]
ENDTYPE

TYPE TT
    w[] AS TX

    FUNCTION foo:
FOREACH w IN self.w[]
IF "x"=w.text$[0] THEN RETURN
NEXT
    ENDFUNCTION

ENDTYPE
This works for me, so can you make a short complete example that does not work?

I added... "LOCAL i%, w AS TX" to be more like my original source, it now reproduces the error standalone.

Code: (glbasic) [Select]
TYPE TX
    text$[]
ENDTYPE

TYPE TT
    w[] AS TX

    FUNCTION foo:
    LOCAL i%, w AS TX
FOREACH w IN self.w[]
IF "x"=w.text$[0] THEN RETURN
NEXT
    ENDFUNCTION

ENDTYPE


Also, I just pasted this to the end of the file for reference ...

Code: (glbasic) [Select]
FUNCTION GetWidgetID%: name$
IF name$="" THEN RETURN -1
LOCAL i%, w AS TWidget
FOREACH w IN self.w[]
IF name$=w.text$[WB_NAME_STRING] THEN RETURN i%
INC i%
NEXT
RETURN -1
ENDFUNCTION

Highlighted the code and pressed CTRL+K to block remark it and the IDE crashed and exited to desktop. I Think it has something to do with the  final line not having a carriage return. I redid it again but made sure I pressed enter after the last line, then it didn't crash when I remarked it.
4
Announcements / Re: Comming up features
« Last post by Kitty Hello on 2020-Nov-24 »
Code: (glbasic) [Select]
TYPE TX
    text$[]
ENDTYPE

TYPE TT
    w[] AS TX

    FUNCTION foo:
FOREACH w IN self.w[]
IF "x"=w.text$[0] THEN RETURN
NEXT
    ENDFUNCTION

ENDTYPE
This works for me, so can you make a short complete example that does not work?
5
Is something im could help here?

Howover all my games is on steam and can no longer create steam keys for Genius Greedy Mouse and Karma Miwa.

Im do might could do that with PowerUp Elevation, im do wanted to give a way for a week exclusive for you and friends doing such a bundle like this (and im do NOT want a paymant, its for service and promotion, only if its sold like insane). Im do that as a payback for your old work from Karma Miwa.

PowerUp Elevation is DRM free on Steam. So just grab the game and use that on a bundle (you are allowered to use that). Just to remember im do cant update that version of course.

Im can do a sign eventuelly and you just need to add where the game came from and where the permission came from and notify you cannot redistrubte the game (the end user meant).
6
Announcements / Re: Call for arms - itchio black friday
« Last post by erico on 2020-Nov-23 »
I´m not quite sure it will be possible now, we changed payment mode on itchio to direct mode and that does not allow bundles, so we would have to switch back for it. Problem is that if I do so, all fees including US taxes reaches about 60% by the time the money gets in my hands in Brazil, and takes ages to get here, while on direct mode I get to pay 30% fees and the money is instantly available.
So there is a dilemma...

But thanks for the heads up! :)
7
Beta Tests / Re: SGEngine
« Last post by Qedo on 2020-Nov-23 »
For the moment I have abandoned Html5 waiting for possible updates. For now, if I need to, I'll use v15.
Right now I'm trying to finish my first game, but I see it tough.
Anyway thanks for the help SnooPI. :good:
I look forward to seeing you finish SGEngine because I see great potential.  :booze:
8
Announcements / Re: Comming up features
« Last post by bigsofty on 2020-Nov-23 »
Phew, quick try of my own game source produced the following error...

Code: (glbasic) [Select]
FOREACH w IN self.w[]
IF name$=w.text$[WB_NAME_STRING] THEN RETURN i%
INC i%
NEXT

"gui.gbas"(1685) error : GPC0007 wrong argument type on line...
Code: (glbasic) [Select]
FOREACH w IN self.w[]
9
Announcements / Re: Call for arms - itchio black friday
« Last post by SnooPI on 2020-Nov-22 »
Very good idea Erico  :good:
I would probably buy this bundle as soon as it goes on sale.

I was permanently knackered before Covid. It's soooo much worse now.
Due to health issues I'm finding coding real slow for me just now.
Same...  :sick:



10
Beta Tests / Re: SGEngine
« Last post by SnooPI on 2020-Nov-22 »
Thanks for your interest Qedo  :booze:

I'm continuing this project but I'm just going to take my time, it will allow me to do many examples and integrate a physics engine.
Plus I have work to finish before Christmas (I'm very late  :()

By the way, were you able to solve your problems with HTML5?
If you need any help please don't hesitate to ask me, maybe I can help you.
Pages: [1] 2 3 ... 10