Implemented cserver

Holzchopf

Moderator
Staff member
Joined
Jul 31, 2017
Likes
152
Location
Bern, Switzerland
#3
Version 18.03.05 is up.
- removed this thing called "cludge fix for ted", because the problem this fix should have prevented couldn't be reproduced anymore.

Also, the executable zip now contains a data folder, containing the mojofont, so the cserver won't be just black screen anymore ;-)
 

Attachments

Holzchopf

Moderator
Staff member
Joined
Jul 31, 2017
Likes
152
Location
Bern, Switzerland
#5
It's not specific. Well, the exe is specific to Windows ;-) but the cserver.cxs is meant to be an update for the default cserver.cxs (version 17.7.3) which was a replacement for cserver.bmx. Version 18.03.05 is noticeable faster than 17.7.3 and uses less cpu.
 

Phil7

Active Member
Joined
Jun 26, 2017
Likes
61
#9
Just tried it and starting speed is back to normal. The lag the other version had was just annoying.
I am using Jungle, so I am not sure where this behavior comes from: When I run a program, it starts normal, but when I start the same program without closing cserver it won't start. Running in chrome on Win10
 

Holzchopf

Moderator
Staff member
Joined
Jul 31, 2017
Likes
152
Location
Bern, Switzerland
#10
when I start the same program without closing cserver
by this, do you mean you chose just "Build..." or "Build and Run..."?

When you only build, you just have to reload your CerberusGame-Tab in Chrome.
When you build and run, I can't explain why Chrome shouldn't load it...

I'm using Opera and it works both on Win7 and Win10.
 

Phil7

Active Member
Joined
Jun 26, 2017
Likes
61
#11
in Ted it works... so it is a JungleIde thing.
I get this error log:

Sending Kill signal...
Error killing process <unknown>. Process has exited, so the requested information is not available.
Connection properly closed.

So maybe Jungle is not allowing another start, if it cannot kill the former connection successfully!?
But it starts all the earlier tries later, when you close cserver.
 

Holzchopf

Moderator
Staff member
Joined
Jul 31, 2017
Likes
152
Location
Bern, Switzerland
#12
OK I'll look into that. There's this odd behaviour, that after the first time I hit "Build and Run..." the "Cancel Build" button is active, because - I guess - the Server is still running and the IDE thinks the compilation process hasn't finished yet. Happens in Mollusk and Ted for me, but didn't really bug me. Maybe JungleIDE can't really handle that but I can't blame the IDE because ACTUALLY, transcc should start cserver like "detached", so its execution would continue, and then quit properly... But if this doesn't happen, it's probably a cserver thing =/
 

Holzchopf

Moderator
Staff member
Joined
Jul 31, 2017
Likes
152
Location
Bern, Switzerland
#13
Nah, mixed up something in my last post:

transcc starts cserver, which -if necessary- starts cserver detached acting as server, then opens the url and quits, leading transcc to quit too. In my opinion exactly as it should. At least when running it from cmd. Because weirdly, Mollusk seems not to get that and still shows the "Cancel Build" button as active o_O
 

Phil7

Active Member
Joined
Jun 26, 2017
Likes
61
#14
thanks for looking into that. It doesn't bother me to much. Compile /start time was definitely an issue for me, so great job!
 

MikeHart

Administrator
Staff member
Joined
Jun 19, 2017
Likes
427
Location
Germany
#16
@Holzchopf did you test your cserver with OGG sound files? Somehow one of my games is not loading them and cserver reports problems regarding OGG sound files.
 

Holzchopf

Moderator
Staff member
Joined
Jul 31, 2017
Likes
152
Location
Bern, Switzerland
#17
I did not*. What kind of problems does cserver report and how? And when you write "one of my games" does this mean the problem only occurs for that specific one of your games?

* in the mean time I did. Can you check if example examples\mojo\mak\audiotest\audiotest.cxs works for you please? Works fine here.
 

MikeHart

Administrator
Staff member
Joined
Jun 19, 2017
Likes
427
Location
Germany
#18
I noticed it there, didn't check more. But will do so. I am at work atm so this will have to wait till tonight.
 

MikeHart

Administrator
Staff member
Joined
Jun 19, 2017
Likes
427
Location
Germany
#20
Ok, that oog problem was my code. Sorry about that. But I discovered that Cserver doesn't like to be closed. After that it doesn't open or when it opens, it states that "CServer failed". So far I need to restart TED to get it working again... most of the time.
 
Top Bottom