Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / My Nice Unity LUA MMORPG Style Example

Author
Message
GatorHex
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 8th Apr 2006 05:07 Edited at: 6th May 2007 22:34
Not sure what Unity LUA can do for your DBP project?

Then try running my little MMORPG style example program and alter the .lua files with a text editor.

http://www.freewebs.com/sang33ta/LuaExample.rar

Enjoy

UPDATE: LOOK FURTHER DOWN THIS THREAD TO SEE HOW YOU CAN RECODE THE EXAMPLE FILES TO ADD SOME SIMPLE AI!!!

http://www.KumKie.com http://bulldog.servegame.com
Habatar
21
Years of Service
User Offline
Joined: 9th Aug 2004
Location: Madrid (Spain)
Posted: 8th Apr 2006 10:56
Very good. Works correctly.
Chewy
20
Years of Service
User Offline
Joined: 1st Jan 2006
Location:
Posted: 8th Apr 2006 21:39
I have direct x 9.0c but its saying i only have 9.0?

Anyway, how can you encrypt or make sure the script is unreadable or unchangeable?

Chewy
Jedi Lord
21
Years of Service
User Offline
Joined: 11th Jun 2004
Location: Jedi Temple
Posted: 8th Apr 2006 22:53
Uhhh there a update for direct x 9 now... go to http://www.microsoft.com/windows/directx/default.mspx

Whoa... I like a shiny thing...
Chewy
20
Years of Service
User Offline
Joined: 1st Jan 2006
Location:
Posted: 8th Apr 2006 23:38
I have 9.0c my friend.. says there is nothing else to install etc...

Chewy
GatorHex
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 9th Apr 2006 01:15 Edited at: 9th Apr 2006 01:16
Its compiled in DBP v6 beta 3 so you need to install Direct X v9c Nov 05 or later. You might as well stick DX v9c Feb 06 on which is the latest version of 9c!!
Chewy
20
Years of Service
User Offline
Joined: 1st Jan 2006
Location:
Posted: 9th Apr 2006 01:34
hmm nothing at all mate.. has anyone got a copy of the new directx release I can grab please and try it that way

thanks in advance

Chewy
dab
21
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 9th Apr 2006 01:58
Well, I thought it was cool.

GatorHex
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 9th Apr 2006 19:35
Chewy
20
Years of Service
User Offline
Joined: 1st Jan 2006
Location:
Posted: 9th Apr 2006 20:17
s'ok I managed to get it working a few minutes ago. I downloaded Direct X feb redist which installed fine and your program runs well..

great little example

Chewy
---------------------------
AMD Athlon64 3500 2.2GHZ | 1024MB ram | ATI FireGL v3100 128MB | WinXP
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 10th Apr 2006 20:12
Nice, how did I miss this?!

I actually did an MMORPG sample thingy using Unity to transfer the data as lua markup. Worked well, just a bit slow.

GatorHex
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 10th Apr 2006 21:00 Edited at: 6th May 2007 22:46
OK here is a little upgrade to the Amazon.lua we will re-program the AI without needing DBP to recompile the software!!!

add these three lines...

spotPlayerDistance = 20
if dist > attackDistance and dist < spotPlayerDistance then
if timer > (oldTimer + attackTimer) and dist < attackDistance then


..now the monster only comes after you if you get too close to her.

Your full Amazon.lua file should looks as below...



http://www.KumKie.com http://bulldog.servegame.com
x1bwork
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 10th Apr 2006 21:25
cute. should include commented source for the .exe for the newbies to learn how lua is really applied to this.

Oneka
22
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 10th Apr 2006 23:20
Iam still not really convinced on getting LUA all the things you said earlier I can pretty much make myself, using DBP....


Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
BF game programmer
21
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: hoover alabama
Posted: 11th Apr 2006 00:28
Quote: "cute. should include commented source for the .exe for the newbies to learn how lua is really applied to this.
"
thats what i need !

Boba Fett - "put captin solo in the cargo hold"
GatorHex
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 11th Apr 2006 01:51
Oneka, the beauty is that if I want a Troll or some other creature all I just have to copy the .lua text file rename it and change a few values.

My code is still a work in progress I still need to add things like animation frames for each action, I might hive off each action to its own procedure. I've got a shield and weapon system working in the player file but no ADSL at the mo so its a pain to upload

I got the telecom engineers dropping by tomorrow, fingers crossed the can get the ADSL Max working but maybe a few days as they obviously think its my settings that are wrong and not a problem at their exchange

Login to post a reply

Server time is: 2026-06-09 19:35:45
Your offset time is: 2026-06-09 19:35:45