trAInsported

Show off your games, demos and other (playable) creations.
Post Reply
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: trAInsported: Alpha testers needed

Post by Germanunkol »

substitute541 wrote:Could you put the download link in dropbox now. I want to download it in a downloader... And yes, I do have a crappy net.
I'll see about this tonight. It seems I have to install dropbox on my local PC to get it to work, and can't upload files through my browser? Never used Dropbox before - correct me if I'm wrong. But I don't want to install it for just this one file.
Taehl wrote:I tried it out for the first time.

1) Loading was super-slow. Why make 19 threads generate images at the same time, instead of generating 1 image at a time?
2) The game brings my whole system to a crawl. Unless I minimize the window (to force-pause it), every action on my desktop takes like 30 seconds to happen.
3) I tried the first tutorial level. I got to the part where it tells you to print("Hello trAIns!"), and am stuck. It won't let me continue the tutorial, despite following its instructions.
You're using the old version (version 2). The new one is in the text in the first post of this thread - the old one was still hanging at the bottom of the post. Sorry about that, I removed it now. Please try the new version!
Also, I don't understand your remark about threads. Threadding speeds the thing up a lot, because a few of them can run at the same time (if you have a multi-core-system, which is standard these days. Most users have two cores). I agree that 20 threads is way more than most computers can actually compute at the same time, but this is just me being slack, and it should not slow down the game that much. What might be a problem is the memory it takes, maybe I'll make it run a maximum of, say, 4 threads at a time in the future. But making it render one image after the other would take ages.
Also, this rendering process is only done once. Next time you start, it does not render the images again.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: trAInsported: Alpha testers needed

Post by substitute541 »

Dropbox is a file sharing program. You just add files in the Dropbox Folder, and it gets synced with the Dropbox servers. However, to make others download your files, you must add it in the Dropbox/Public folder. Trust me, Dropbox will become useful for files that you need to back up, or files that you want people to download.


Man I sound like an advertiser here...
Currently designing themes for WordPress.

Sometimes lurks around the forum.
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: trAInsported: Alpha testers needed

Post by Germanunkol »

I know how Dropbox works, I was just wondering if I can upload a file through the browser as well, that way I would not have to install it.

Edit: Never mind, sorry, found out how. Here you go:
https://www.dropbox.com/s/lc63906os89qy ... orted.love
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: trAInsported: Alpha testers needed

Post by Germanunkol »

Short video Tutorial, introduction to the game:

trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
spectralcanine
Citizen
Posts: 65
Joined: Sat Dec 22, 2012 8:17 am

Re: trAInsported: Alpha testers needed

Post by spectralcanine »

This is a pretty cool game idea.

Without looking at any code, why does it take so much time to render maps?
Drawing those sprites to an off screen buffer and making an image from it should take less than a second.
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: trAInsported: Alpha testers needed

Post by Germanunkol »

I uploaded a new version that draws the image much faster on multi-core systems.

I read that using canvases (which is, I think, what you mean) will not work on many PCs, so I avoided that. Instead I used imageData:paste and pixelSet/pixelGet which are just very slow. I asked how to speed this up a week ago, but there were no ideas: viewtopic.php?f=4&t=12583
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
User avatar
xXxMoNkEyMaNxXx
Party member
Posts: 206
Joined: Thu Jan 10, 2013 6:16 am
Location: Canada

Re: trAInsported: Alpha testers needed

Post by xXxMoNkEyMaNxXx »

Is it possible to check if features are supported on the system, then make use of them if they are?

By the way, here's the overlay function:
overlay a with b:
b+a*(1-b.a)

where b.a is the alpha component of b.
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: trAInsported: Alpha testers needed

Post by Germanunkol »

Hi,

What do you mean by features? Os.execute?
Or are you talking about lua modules?
I do not allow lua modules right now, because of security reasons and because I want the AI scripts to work on the server as well...
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
spectralcanine
Citizen
Posts: 65
Joined: Sat Dec 22, 2012 8:17 am

Re: trAInsported: Alpha testers needed

Post by spectralcanine »

Germanunkol wrote:I uploaded a new version that draws the image much faster on multi-core systems.

I read that using canvases (which is, I think, what you mean) will not work on many PCs, so I avoided that. Instead I used imageData:paste and pixelSet/pixelGet which are just very slow. I asked how to speed this up a week ago, but there were no ideas: viewtopic.php?f=4&t=12583
Then why not draw directly to the screen and make an image from it?

Or, even better, why are you making one big image to begin with? drawing those tiny amounts of tiles is practically zero effort for any PC with OpenGL, which is the basic requirement for Love2D).
As a side effect, this allows you to add animations and other dynamic stuff.
User avatar
xXxMoNkEyMaNxXx
Party member
Posts: 206
Joined: Thu Jan 10, 2013 6:16 am
Location: Canada

Re: trAInsported: Alpha testers needed

Post by xXxMoNkEyMaNxXx »

I was a little vague there, but I had just read the whole 'not all systems support canvases' issue. I also think it would be a good idea to use pixel effects if the system supports it, because the GPU holds untamed amounts of processing power.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 7 guests