Recent

Poll

Vote: What's the best project of this year?

"ball" by raw
1 (3.7%)
"bgragraphics" by j-g (pocket watch)
2 (7.4%)
"duplo6" by bylaardt
7 (25.9%)
"glslideshow" by handoko
2 (7.4%)
"mariocronch" by ericktux
0 (0%)
"movingdots" by lainz
1 (3.7%)
"movingdotsgl" by lainz
0 (0%)
"relogio" by bylaardt
5 (18.5%)
"starsfieldshooter" by turrican
0 (0%)
"steampunkclock" by bylaardt
1 (3.7%)
"sudoku" by user137
5 (18.5%)
"furiouspaladin" by handoko
3 (11.1%)
"educrace" by lulu
0 (0%)

Total Members Voted: 27

Author Topic: Graphics Contest 2017, please vote now!  (Read 155478 times)

lainz

  • Hero Member
  • *****
  • Posts: 3699
  • Leandro Diaz
Re: Graphics Contest 2017
« Reply #165 on: July 30, 2017, 02:24:55 am »
@lainz

In order to vote, we need a link, where all the projects can be downloaded at once. I'm almost certain you already have a link for us(us --> those who did not follow the thread in details, but are interested enough to vote).
Thank you!

Almost done. I need to add one or two of the latest projects. Done.

Things missing:
- Handoko sources
- J-G sources: try to compile says missing png images

The link is in the first post, it's on Lazarus CCR at GitHub. And here:

https://github.com/lazarusccr/GraphicsContest

I think I need to provide the executables also like I did for previous contests.

If anyone wants to help me with binaries for all platforms: thanks :)

I've added the poll, so anyone can start voting the submitted projects from now until 1 September. That day we will know the winner.
« Last Edit: July 30, 2017, 03:33:00 am by lainz »

bylaardt

  • Sr. Member
  • ****
  • Posts: 308
Re: Graphics Contest 2017, please vote now!
« Reply #166 on: July 30, 2017, 05:35:34 am »
I think I need to provide the executables also like I did for previous contests.
Executable avaliable For Win (.exe) and Linux(.i386 ou .x86_64) with screenshots:
https://github.com/bylaardt/duplo6
https://github.com/bylaardt/relogio
https://github.com/bylaardt/steampunkclock
« Last Edit: July 30, 2017, 06:09:43 am by bylaardt »

Handoko

  • Hero Member
  • *****
  • Posts: 3759
  • My goal: build my own game engine using Lazarus
Re: Graphics Contest 2017, please vote now!
« Reply #167 on: July 30, 2017, 05:44:15 am »
I have submitted and donated the source code of Furious Paladin to Nuno. I had never used Allegro.pas before, so I let him to check my code to make sure it is conform the 'standard'. The (checked/modified) code should be downloadable from Allegro.pas website. And now, I'm preparing the tutorial based on the code.

bylaardt

  • Sr. Member
  • ****
  • Posts: 308
Re: Graphics Contest 2017, please vote now!
« Reply #168 on: July 30, 2017, 06:45:40 am »
I'm curious about:
Sudoku (execution error describe by handoko)
Mariocronk (I can't compile it, probably missing libs. Please, can you provide a linux version?)
StarFieldShuter (same problem)

PS: It's not fair chose just one!
Why not vote by category?

Handoko

  • Hero Member
  • *****
  • Posts: 3759
  • My goal: build my own game engine using Lazarus
Re: Graphics Contest 2017, please vote now!
« Reply #169 on: July 30, 2017, 07:01:02 am »
I managed to fix Sudoko (by User137) to make it runable on Linux:

1. Add a new procedure Start(Data: PtrInt) on Main.pas:

Code: Pascal  [Select][+][-]
  1. type
  2.  
  3.   { TForm1 }
  4.  
  5.   TForm1 = class(TForm)
  6.   //...
  7.   private
  8.   //...
  9.     procedure Start(Data: PtrInt);
  10.   //...
  11.   end;
  12.  
  13. procedure TForm1.Start(Data: PtrInt);
  14. begin
  15.   if not nx.CreateGlWindow(self) then begin
  16.     showmessage('Failed to initialize OpenGL!');
  17.   end;
  18.   FormPaint(Self);
  19. end;

2. Change opengl initialization code with QueueAsyncCall on FormCreate in Main.pas: 

Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. begin
  3.   // Initialize game window
  4.   clientHeight:=screen.Height * 3 div 5;
  5.   clientWidth:=clientHeight * 4 div 3;
  6.  
  7.   Randomize;
  8.  
  9.   // Remove these 3 lines below
  10.   //if not nx.CreateGlWindow(self) then begin
  11.   //  showmessage('Failed to initialize OpenGL!');
  12.   //end;
  13.  
  14.   // But use this
  15.     Application.QueueAsyncCall(@Start, 0);
  16. end;

3. Add -dUseCThreads to the project's custom options
Lazarus main menu > Project > Project Options > Compiler Options > Custom Options

By doing the things above, Sudoku (nxDemo2017) should be compilable on Linux, I tested it on Ubuntu Mate 64-bit.

The fix #1 and #2 are based on the advices by @Pascal and @Akira1364:
http://forum.lazarus.freepascal.org/index.php/topic,37356.msg250882.html#msg250882
Thank you Pascal and Akira ;)

I got error 211 when inspecting the code, so I found the fix #3 here:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#Lazarus_crashes_with_runtime_error_211_after_I_installed_a_component

Because I do not have account on GitHub and SourceForge, and the compressed file (657 Kb) is too big to put here, it is now temporary hosted on my blog. Someone please grab the code before I remove it. Password to download: lazarus

http://graphicslearning.com/furious-paladin-tutorials/

taazz

  • Hero Member
  • *****
  • Posts: 5365
Re: Graphics Contest 2017, please vote now!
« Reply #170 on: July 30, 2017, 07:10:20 am »
http://graphicslearning.com/furious-paladin-tutorials/
link removed.

It can stay there for a while I guess I will take down when the author tells me that he got it. After that it is up to the author to share it as he sees fit.
« Last Edit: July 31, 2017, 12:25:20 pm by taazz »
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Handoko

  • Hero Member
  • *****
  • Posts: 3759
  • My goal: build my own game engine using Lazarus
Re: Graphics Contest 2017, please vote now!
« Reply #171 on: July 30, 2017, 08:49:40 am »
I'm curious about:
...
Mariocronk (I can't compile it, probably missing libs. Please, can you provide a linux version?)

I managed to make Mario Cronch to run on Linux but without audio:
- Disable/remove mmsystem from the uses clause in unit1.pas line #9
- Change windows to LCLType on the uses clause in unit1.pas line #9
- Disable playsound in unit1.pas line #125
- Disable playsound in unit1.pas line #133

I am not familiar with audio programming, but if someone interested to make the demo to be able to produce sound on Linux, you can try:
http://wiki.freepascal.org/Multimedia_Programming

As mentioned by the author Ericktux, the game is incomplete but I impressed that the demo did not use any (3rd party) graphics library, just TImage.

bylaardt

  • Sr. Member
  • ****
  • Posts: 308
Re: Graphics Contest 2017, please vote now!
« Reply #172 on: July 30, 2017, 02:44:06 pm »
thanks handoko, it works.
Both sudoku and mariocronk.

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Graphics Contest 2017, please vote now!
« Reply #173 on: July 30, 2017, 03:01:02 pm »
Uploaded again on my source, so you can take those others down
https://www.dropbox.com/s/19jsdyo79ktmpmn/nxPascal_LazDemo_2017.zip?dl=0

Just a minor fix, using sleep(5) instead of 30 and skipping less recursions during generation. This gives higher fps and so feels a little smoother.

Thanks Handoko too, added in credits. Both seem to be just specific to Linux things. Odd that stuff actually isn't crossplatform with out of the box settings even in Lazarus development.

J-G

  • Hero Member
  • *****
  • Posts: 551
Re: Graphics Contest 2017
« Reply #174 on: July 30, 2017, 05:36:13 pm »
Things missing:
- J-G sources: try to compile says missing png images

The link is in the first post, it's on Lazarus CCR at GitHub. And here:

https://github.com/lazarusccr/GraphicsContest
I presume that I don't need to do anything then.

Quote from: lainz
I think I need to provide the executables also like I did for previous contests.
Yes - I would appreciate easy access to .EXE files - I don't have a Linux setup so cannot evaluate any entry that doesn't have a windows version.

I have looked at the three entries by bylaardt - a small comment on the dominos game, my player was holding the double 6 but that tile was played by another and when I eventually played it, it turned into a double 1 !!  -  there were a few other mis-matched tile displays as well.

Lainz - can you change the title of my entry to 'Pocket Watch' ?    -  to reflect what it actually is please.

FPC 3.0.0  Lazarus 1.6  Win 7 Ult 64

lainz

  • Hero Member
  • *****
  • Posts: 3699
  • Leandro Diaz
Re: Graphics Contest 2017
« Reply #175 on: July 30, 2017, 06:07:14 pm »
Things missing:
- J-G sources: try to compile says missing png images

The link is in the first post, it's on Lazarus CCR at GitHub. And here:

https://github.com/lazarusccr/GraphicsContest
I presume that I don't need to do anything then.

Quote from: lainz
I think I need to provide the executables also like I did for previous contests.
Yes - I would appreciate easy access to .EXE files - I don't have a Linux setup so cannot evaluate any entry that doesn't have a windows version.

I have looked at the three entries by bylaardt - a small comment on the dominos game, my player was holding the double 6 but that tile was played by another and when I eventually played it, it turned into a double 1 !!  -  there were a few other mis-matched tile displays as well.

Lainz - can you change the title of my entry to 'Pocket Watch' ?    -  to reflect what it actually is please.

Hi, the sources I uploaded says missing png images, you can check that?

And I've added a comment in the entry with that name, since I only named the entries as the project structure in the git repository, so anyone knows what source is voting.

bylaardt

  • Sr. Member
  • ****
  • Posts: 308
Re: Graphics Contest 2017
« Reply #176 on: July 30, 2017, 07:20:02 pm »
I have looked at the three entries by bylaardt - a small comment on the dominos game, my player was holding the double 6 but that tile was played by another and when I eventually played it, it turned into a double 1 !!  -  there were a few other mis-matched tile displays as well.

thanks for testing it on windows.
do you used the compiled version avaliable on https://github.com/bylaardt/duplo6
otherwise what version of Bgrabitmap do you had used?

My wife play every day, minimum 2 hours since i finalize it and never report to me something like that.
She wants i create a server version to play online with others real players, but now she must wating to my next summer vacation (january)

Others proposals are:
Create some variations of rules to play like spanish rules;
Personal tilles 
Personal avatars

PS: i love your bgraphics (pocket watch). it was my inspiration to make steampunkclock.

J-G

  • Hero Member
  • *****
  • Posts: 551
Re: Graphics Contest 2017, please vote now!
« Reply #177 on: July 30, 2017, 07:32:05 pm »
@lainz
I've checked the list of .PNG files in the 'LoadImages' procedure (lines 187 - 211) against the list in the GitHub link and as it happens there are 3 files too many - ie. they are in GitHub but not actually required in my program  -  they are alternative images that I created but found I didn't need (5A, 5B & 5C). So I can't suggest a reason for the compiler complaining. I have no problem compiling.

FPC 3.0.0  Lazarus 1.6  Win 7 Ult 64

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Graphics Contest 2017, please vote now!
« Reply #178 on: July 30, 2017, 07:51:29 pm »
@J-G/lainz:
are those errors originating from resourced images ?

lpi file:
Quote
13      <Resources Count="25">
14           <Resource_0 FileName="Images\01-CaseFront.png" Type="RCDATA" ResourceName="01-CASEFRONT"/>
15           <Resource_1 FileName="Images\02-MinHand.png" Type="RCDATA" ResourceName="02-MINHAND"/>
16           <Resource_2 FileName="Images\03-SecHand.png" Type="RCDATA" ResourceName="03-SECHAND"/>
17           <Resource_3 FileName="Images\04-HourHand.png" Type="RCDATA" ResourceName="04-HOURHAND"/>
18           <Resource_4 FileName="Images\05-Dial.png" Type="RCDATA" ResourceName="05-DIAL"/>
19           <Resource_5 FileName="Images\06-DayDial.png" Type="RCDATA" ResourceName="06-DAYDIAL"/>
20           <Resource_6 FileName="Images\07-DateWheel.png" Type="RCDATA" ResourceName="07-DATEWHEEL"/>
21           <Resource_7 FileName="Images\08-Winder.png" Type="RCDATA" ResourceName="08-WINDER"/>
22           <Resource_8 FileName="Images\09-Winder.png" Type="RCDATA" ResourceName="09-WINDER"/>
23           <Resource_9 FileName="Images\10-Winder.png" Type="RCDATA" ResourceName="10-WINDER"/>
24           <Resource_10 FileName="Images\11-BackRim.png" Type="RCDATA" ResourceName="11-BACKRIM"/>
25           <Resource_11 FileName="Images\12-Button.png" Type="RCDATA" ResourceName="12-BUTTON"/>
26           <Resource_12 FileName="Images\13-Back.png" Type="RCDATA" ResourceName="13-BACK"/>
27           <Resource_13 FileName="Images\14-CaseFront.png" Type="RCDATA" ResourceName="14-CASEFRONT"/>
28           <Resource_14 FileName="Images\15-TopPlates.png" Type="RCDATA" ResourceName="15-TOPPLATES"/>
29           <Resource_15 FileName="Images\18-BalWheel.png" Type="RCDATA" ResourceName="18-BALWHEEL"/>
30           <Resource_16 FileName="Images\19-BalWheel.png" Type="RCDATA" ResourceName="19-BALWHEEL"/>
31           <Resource_17 FileName="Images\20-BalPlate.png" Type="RCDATA" ResourceName="20-BALPLATE"/>
32           <Resource_18 FileName="Images\21-Wheel-3.png" Type="RCDATA" ResourceName="21-WHEEL-3"/>
33           <Resource_19 FileName="Images\22-Wheel-4.png" Type="RCDATA" ResourceName="22-WHEEL-4"/>
34           <Resource_20 FileName="Images\23-CentreWheel.png" Type="RCDATA" ResourceName="23-CENTREWHEEL"/>
35           <Resource_21 FileName="Images\24-Pallet.png" Type="RCDATA" ResourceName="24-PALLET"/>
36           <Resource_22 FileName="Images\25-Pallet.png" Type="RCDATA" ResourceName="25-PALLET"/>
37           <Resource_23 FileName="Images\26-EscapeWheel.png" Type="RCDATA" ResourceName="26-ESCAPEWHEEL"/>
38           <Resource_24 FileName="Images\27-DialBack.png" Type="RCDATA" ResourceName="27-DIALBACK"/>
39         </Resources>
Note the subdir.

edit: note the casing of the names as well btw (i haven't verified).
« Last Edit: July 30, 2017, 07:54:31 pm by molly »

J-G

  • Hero Member
  • *****
  • Posts: 551
Re: Graphics Contest 2017
« Reply #179 on: July 30, 2017, 08:01:19 pm »
thanks for testing it on windows.
do you used the compiled version avaliable on https://github.com/bylaardt/duplo6
Yes 
Quote from: bylaardt
otherwise what version of Bgrabitmap do you had used?
For your benefit - 9.2.1 and _Controls 431  the only version I downloaded in October 2016
Quote from: bylaardt
My wife play every day, minimum 2 hours since i finalize it and never report to me something like that.
She wants me to create a server version to play online with others real players, but now she must wait until my next summer vacation (january)

2 hours a day !!!!  -  you treat her too well  :D

I played for about 10 minutes - just to get a feel for the game. It must be at least 50 years since I played Dominoes, probably with my father and certainly before I got married (1972)
Quote from: bylaardt
Others proposals are:
Create some variations of rules to play like Spanish rules;
Personal tiles 
Personal avatars
I don't know about Spanish rules - I barely remembered that you must match the 'end' number!  A vague memory of '5s and 3s' springs to mind.
Quote from: bylaardt
PS: i love your bgraphics (pocket watch). it was my inspiration to make steampunkclock.
Thanks for the compliment - it's good to be an inspiration -  I haven't yet had time to properly evaluate the SteamPunk - though I do intend to pass that on to a friend who has a SteamPunk party every year where we all dress appropriately  :o
FPC 3.0.0  Lazarus 1.6  Win 7 Ult 64

 

TinyPortal © 2005-2018