Lamecraft, developed by Drakon, is aiming to create the Indie Hit Minecraft on to the PSP.

Report article RSS Feed How to mod the Lamecraft Source

I present a incredibly great tutorial by 10$man on how to mod the Lamecraft source.

Posted by monsterbasher1233 on Jun 21st, 2011
Intermediate Client Side Coding.

Modding Lamecraft Source.
Tutorial By:10$man

Intro
Hello fellow LameCrafters ;) . This is a tutorial on modding the source code of lamecraft to better suite your playing style. (speed,camera sensitivity,etc.) I am assuming by following this tutorial you already know basic knowledge of programming, or understand fundamentals.

Aquiring the source.
I am understanding that some people do not understand SVN. This is not a problem. To download from an SVN Repository you can follow these steps:
1.
You first must download an SVN client. I will use SVN Tortoise.
2.
once you have downloaded and installed, you must go and make a new folder. lets say:
LameCraft SourceCodes
3.
Now you must right click that folder. when you right click you should now see new options. they will say:
SVN checkout
TortoiseSVN
Go ahead and put your cursor over TortoiseSVN. A drop down menu will apear.
now click export on the drop down menu.
a little window will pop up.
4.
In this window you will see a box titled URL of repository. in this box copy and paste this in:

code:

5.
Now you click Ok at the bottom of the window.
You should see the download start.
when it is finished Congrats you have aquired the source!

How to edit the source.
Now that you have the source you probably want to do something with it :P
you can download many different editors dev-c++, Code::Blocks, Visual studio,etc. also you could use notepad.

I recomend Code::Blocks.

go into the folder you download source to.
open the folder called Lamecraft.
You now probably see many files with the extensions .h and .cpp. These are C/C++ source files.
The one we are going to edit in this tutorial is:
StatePlay.cpp

Ok once you have this file open you should see much code. this code might or might not make sense to you.
This is ok :P

Go ahead and scroll down untill you see:

code:
GRAVITY = -9.8f;
JUMPVELOCITY = 4.0f;
CLIMBVELOCITY = 2.5f;

It isn't far down on the source.

Ok
Right here you can see were Drakon sets the GRAVITY speed, The Jump speed and the climb speed. If you don't like the original jump height you can add maybe 2 to the JUMPVELOCITY:

code:
GRAVITY = -9.8f;
JUMPVELOCITY = 6.0f; //<- I set it to six now.
CLIMBVELOCITY = 2.5f;

Ok so once you have done what you want go ahead and scroll down some more until you see:

code:
cameraSpeed = 2.0f / 60.0f;
cameraMoveSpeed = 4.0f/ 60.0f;

This sets the camera speed. (obviously :P )
Now pay attention. setting the SECOND NUMBER up will make your camera move SLOWER. EX.

code:
cameraSpeed = 2.0f / 100.0f;

is slower then

code:
cameraSpeed = 2.0f / 40.0f;

Now you should have an understanding of how to change things. Obviously these are simpler things to change. more advanced things require C/C++ knowledge. I am not giving a class on C/C++ :P

Compiling the source:
Ok now you have made your changes, how do you compile it?
simple. (or not so simple)
first you must download PSPSDK
Install it.

--You can also look at the readme in your Lamecraft source file.
Now that it is installed goto your lamecraft source folder.

We must now compile the Music library.

Open the folder inside it called 3libs.

double click the file called "compile.bat"

once it is finished compiling goto your pspsdk folder (C:/PSPSDK)
now goto
PSP>include
create a folder called noisepp
and copy all the files with the extension of .h to there (C:/pspsdk/psp/include/noisepp)

now go back to the route pspsdk folder and copy the file libNoisepp.a to
C:/pspsdk/psp/lib

now you can go to the source of lamecraft and click on compile. It should compile smoothly (with a warning or two)

Congrats :D you have modded Lamecraft

HINTS:
Don't replace your original Eboot.
Don't edit things you don't understand

Post comment Comments
BIGBiRdx23
BIGBiRdx23 Jun 21 2011, 11:36pm says:

Great Tutorial!

+1 vote     reply to comment
Fragon
Fragon Jun 21 2011, 11:40pm says:

this is a great Tut nice 10$man ;)

+1 vote     reply to comment
zombiekila
zombiekila Jun 21 2011, 11:42pm says:

Not trying to be rude but are you even working on lamecraft? -.-

+1 vote     reply to comment
Fragon
Fragon Jun 22 2011, 11:13am replied:

well that was rude, even tho u said ur not trying to, BE PATIENT!!!

+1 vote     reply to comment
monsterbasher1233 Author
monsterbasher1233 Jun 22 2011, 8:31am says:

Just remember i didn't create this tutorial, all the fame goes to 10$man.

+1 vote   reply to comment
Gabriel25Gatens
Gabriel25Gatens Oct 30 2011, 9:17am says:

thanks

+1 vote     reply to comment
RedPanzershrek
RedPanzershrek Feb 10 2012, 11:15pm says:

Im comfused, it seems all technology stuff just messes with me when we try to understand it. AArgh!!!!
You are smart people since you actually know this stuff.
I should start looking for those book for dummies!

+2 votes     reply to comment
Dark_Demon_Shadow
Dark_Demon_Shadow May 31 2012, 1:11am replied:

Same here .__.

+1 vote     reply to comment
Birath123
Birath123 Mar 19 2012, 6:46pm says:

In my 3libs folder there isn't a compile.bat. ARRGGHH!!!!!!!!!!

+1 vote     reply to comment
Birath123
Birath123 Mar 21 2012, 3:54pm says:

Can someone help me out here? I tried doing everything. Copied the files to where they should go. I compiled noisepp, and when i compile the game, I get [ERROR 2]

+1 vote     reply to comment
WeeGee9000
WeeGee9000 Mar 30 2012, 12:05pm replied:

Try compilling as an Administrator (Win7 or Vista)

+1 vote     reply to comment
Birath123
Birath123 Apr 10 2012, 5:20pm replied:

I have Windows XP.

+1 vote     reply to comment
jingsaw2859
jingsaw2859 Feb 16 2013, 8:59am replied:

Help! I keep getting the same error! I have pspsdk 0.11.2 help!!

+1 vote     reply to comment
Birath123
Birath123 Apr 18 2012, 4:03pm says:

YAY!!!!!!!!!! I copied the wrong files the last time. I got the right files this time, got my EBOOT, And now you guys get lamecraft with a HUGE map!!!!!!!!!!!!!!!!!

+2 votes     reply to comment
domis4
domis4 May 22 2012, 2:53pm says:

did everything, copied everything. but doesnt work :(

make[1]: *** [Aurora/Graphics/TextureManager.o] Error 1
make[1]: Leaving directory `C:/Users/dominik/Documents/Lamecraft Source Code'
make: *** [build_game] Error 2

+2 votes     reply to comment
Guest Online
Guest Feb 16 2013, 8:41am replied:

This comment is currently awaiting admin approval, join now to view.

jingsaw2859
jingsaw2859 Feb 16 2013, 8:43am replied:

Help! I keep getting the same error! I have pspsdk 0.11.2 help!

+1 vote     reply to comment
domis4
domis4 May 22 2012, 3:02pm says:

EDIT: works, you need the latest pspsdk. 11.x got my eboot :)

+2 votes     reply to comment
Skullboy99
Skullboy99 Dec 15 2012, 7:03pm says:

But how do we add More Blocks?

+1 vote     reply to comment
IT_Trinakria
IT_Trinakria Dec 21 2012, 11:33am says:

..... I don't have EBOOT file.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Multicraft
Platforms
Windows, Mac, Linux, iPhone, Android, PSP, PS3
Developer & Publisher
Drakon Game Development
Engine
Custom Built
Contact
Send Message
Official Page
Drakon.com.pl
Release Date
Released May 9, 2011
Game Watch
Track this game
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Multicraft
Multicraft Single Player Adventure
Related Engines
Custom Built
Custom Built Commercial Released Sep 1, 2007
Related Groups
Drakon Game Development
Drakon Game Development Developer & Publisher with 5 members