Marcel's Blog

Endless experimentation

  • I am using

    Firefox Download Button
  • Readers

    • 35,475 Visits
  • Archive

  • Ce-i cu blogu’ asta ?

    Details at "About" Page. Postez pe acest blog pur si simplu fiindca imi place si sunt dornic sa impartasesc cu toata lumea experimentele mele, filmarile, chestiile DIY si multe alte lucruri. Ma simt eu mai bine daca o fac :). Blogul este in engleza, fiind o limba de circulatie internationala. Cred ca majoritatea va descurcati sa o intelegeti ;). Details at "About" Page.
  • Calendar Blog

    May 2012
    M T W T F S S
    « Apr    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Meta

  • Visitors

    free counters Since 26th June 2010. Total visits are displayed up

Posts Tagged ‘tutorial’

Open Transport Tycoon Deluxe: Aircraft Transportation Basics

Posted by sjackm on 7 January 2012

This is a tutorial that covers the topic of Aircraft Transportation. It’s mostly a talk on it, not necessarily a tutorial, because figuring out how to make air routes is easy. You can say it at least stimulates your appetite for trying a different approach at winning the game.

Unfortunately, even if my goal was to provide 1080p resolution, this has to be one of the poorest quality videos I uploaded, not judging by image quality, but by annoyance :) . For some reason, Cam Studio produces what I would optimistically call a “time lapse” video output. I don’t know why it does it, I used it to record OpenTTD videos before and it worked just fine. Then I found Microsoft Expression Encoder 4.  You think the title is long? Nah, it just gives you a tip: “beware… something else is long in this program too…”. I was very pleased to notice that it records very well my screen. My happiness stopped when I also noticed that it doesn’t directly record to a normal video file. Instead, it spits out its own, weird, type of video file. This needs encoding, of course! The encoding process for a 10 minute video file took 4 hours on my E6500. If that wasn’t enough, it seems that not all the footage recorded by Expression Encoder 4 is flawless. You can notice this when watching: most of the video is jerky, so you’ll probably listen to a story more than watch an actual video. Argh X(

I hope, even though I shouldn’t, that you like it :P .

 

Posted in Gaming | Tagged: , , | 2 Comments »

Allegro 5 Video Beginner Tutorials

Posted by sjackm on 29 August 2011

At last I have found some good tutorials to follow. After spending the whole night searching for some good Allegro 5 tutorial series and only finding ‘Allegro Tutorial Part 5′ tutorials for Allegro 4.2.3 X(, I am now quite wasted and unable to follow any instructions to learn something. My eyelids are of lead…

But, for future reference and for whoever will stumble upon my blog post, here’s the link:

http://fixbyproximity.wordpress.com/2011/07/13/2d-game-dev-your-first-allegro-5-program/

The tutorials are explained for Microsoft’s IDE, Visual Studio. The guy works with the professional version, but the express version works as well. Now, because I enjoy Code::Blocks I will also search for a Code::Blocks configuration tutorial sometime… and then follow those tutorials.

And I know everybody says 4.2.3 is easier than the new branch, but this is the future… I was never motivated to make a project or learn more with the 4.2.3 version, so I’d better just learn the modern version.

The bed calls me… oh the pillow… here I come. Bye!

Posted in Programare | Tagged: , , , , , , | 4 Comments »

OpenTTD for beginners- Train Transportation

Posted by sjackm on 6 August 2011

I made a new tutorial for Open Transport Tycoon Deluxe, covering some basics about train transportation.

The video is 13 minutes long.

 

Posted in Gaming | Tagged: , , , , | Leave a Comment »

C++ in Code::Blocks -2-

Posted by sjackm on 26 September 2010

Numere prime

Prime numbers

Here’s the code:

#include <iostream>
#include <math.h>
using namespace std;

int prim(int n){
int i;
bool test_prim=1;
for(i=2;i<=sqrt(n);i++){

if(n%i==0){
test_prim=0;
break;
}
}
if(test_prim){
return 1;
}
else{
return 0;
}}

int main(){
int n;
bool continua=1;
while(continua){

cout<<”Introduceti un numar de la tastatura: “<<endl;
cin>>n;
if(prim(n)==1){
cout<<”Numarul este prim!”<<endl;
}
else{
cout<<”Numarul nu este prim!”<<endl;
}
cout<<”Doriti sa continuati? (Da=1, Nu=0)”<<endl;
cin>>continua;
}
return 0;
}

Posted in Programare | Tagged: , , | 4 Comments »

Random Poetry Generation(RPG? ..meh…)

Posted by sjackm on 3 February 2010

Ok, I’ll have to write in romanian here because it’s in no way related to english poetry, so it would be just useless to write about it here.

Recent mi-a venit din nou cheful de c++ si mi-a venit o idee traznita: dupa inventatorul de cuvinte( fara noima), de ce sa nu incerc si un inventator de poezii( fara noima!!) ?

M-am pus pe treaba

Acum va servesc pe tava

Un inventator de poezii anormal

Cu 200 de cuvinte in vocabular .

:D

Meh… e doar asa de distractie. Nu are sens si nici n-o sa ma chinuiesc sa-l fac sa aiba. Probabil ca o sa mai adaug cuvinte (momentan sunt 4 array-uri: subiect,atribut,complement,predicat, fiecare array avand 50 de cuvinte). E mai greu de adaugat cuvinte in arrayul “complement”(e cuvantul de la sfarsitul versului) fiindca ar trebui sa fie un procentaj 50%/50% de cuvinte care se aseamna la sfarsit( pentru a produce rima). Sau cel putin sa nu existe cuvinte “unice” din punct de vedere al asemanarii(adica sa nu fie nici un alt cuvant cu care ar rima in array).  Nici vorba de masura sau alte “standarde” care trebuie respectate cand faci o poezie. Chiar si asa programul uneori da crash din cauza procentajului de care vorbeam.

Programul e simplu. Iti cere numarul de strofe dorite( pentru numarul real e defapt numar-1, adica daca doriti 1 strofa veti scrie 0, daca doriti 2 scrieti 1 etc… , si asta fiindca daca incerc sa o fac automat, da crash programul si nu am mai avut chef sa ma uit prin cod sa corectez).

Va afisa (ca sa stiti totusi ce se intampla) ca strofele se genereaza. Eu cel mai mare numar de strofe care l-am generat, fara sa dea crash programul, a fost 51(LE: Am depasi recordul, am atins 270 :D ). Uneori da crash chiar dupa prima strofa generata… totul depinde de arrayul “complement” daca da crash sau nu.

Strofele sunt scrise automat intr-un fisier denumit sugesti “Poezii.txt” in directorul curent( adica unde e pus programul). Daca programul  nu da crash, dati enter si ati iesit din el. Daca da… well… o sa apara mesajul cu “close”.

In program este afisata la un moment dat o sugestie: sa stergeti fisierul “Poezii.txt” inainte de a-l porni din nou. E optional… initial am crezut ca de acolo provine eroarea… oricum fisierul e rescris.

Have fun… dupa asta cred ca urmeaza “Prozatorul Drogat”  =)).

——===>DOWNLOAD LINK -> Version1.  <====——-

__________________________________________________________________________________

Posted in Computer, Software | Tagged: , , , , , , , , , , , , | Leave a Comment »

USB LED Glow Stick Tutorial

Posted by sjackm on 3 September 2009

Am facut un tutorial pentru un concurs in care se cere sa ai durata maxima de 30 de secunde. N-am putut altcumva decat sa accelerez vorbitul intr-un program, veti da pauza de cate ori vreti sa observati ceva in detaliu :P .

Din pacate tutorialul este in engleza, dar majoritatea stiti limba engleza :P

Posted in DIY electricity | Tagged: , , , , , , , , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.