Go Back   the Magicball Network > Forums > LBA Projects > Little Script Adventure

Welcome to the Magicball Network.

You are currently viewing our site as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Little Script Adventure An open-source 3D engine with assets and tools for all future LBA fan-games.

Reply
 
Thread Tools
  #3701  
Old 2012-07-06, 09:12
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Made a lua function for map transition. It has some issues with the game->editor mode, so save your map if needed before running game mode...

Here is the syntax :
load_map("assets/testgrid.map")

issue solved, when leaving game mode, you get the map and camera just as when you were edited before pressing game button, even if you go to another room during game mode.
__________________
Little Script Adventure[thread][download]

Last edited by David; 2012-07-07 at 09:32.
Reply With Quote
  #3702  
Old 2012-07-09, 02:19
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
heroe can pass over small obstacles using Horadrim animation.
sky has stars again, found the bug.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3703  
Old 2012-07-10, 00:10
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Awesome! Will try that out this week .
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3704  
Old 2012-07-10, 01:20
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Quote:
Originally Posted by David View Post
using Horadrim animation
This made my day. All new animations I make, get called Horadrim. :P

David, why while jumping and releasing shift, Twinsen falls down? Isn`t the whole jump process "locked"?

Last edited by Horadrim; 2012-07-10 at 01:33.
Reply With Quote
  #3705  
Old 2012-07-12, 19:17
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Quote:
Originally Posted by MASSIVE ERROR OF UBER DEATH

-------------- Build: release linux in editor ---------------

Compiling: src/GUIs/editor.cxx
Compiling: src/GUIs/editor_loop.cpp
Compiling: src/GUIs/editor_main.cpp
/media/korniszon/gry/lsa-svn/lsa-svn/src/GUIs/editor_main.cpp:4:17: fatal error: dos.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 9 seconds)
1 errors, 0 warnings
Getting a build error.


EDIT:

Commenting out conio.h and dos.h made it build alright....

The climb animation works really nice, however I think it should have a tiny bit more of a delay, since it seems to start playing too far from the wall. Also I think we need a smaller character capsule, since he often just hangs in the air instead of falling right when he's over a ledge.

Climbing should also work in athletic and other modes I think - to eliminate the weird jumping against a wall thing.
The weird behaviour of being able to walk while jumping when in the sensor box of a camera is still there.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure

Last edited by Jasiek; 2012-07-12 at 21:23.
Reply With Quote
  #3706  
Old 2012-07-12, 22:38
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I modified the jumping distance and added a backwards movement to the wall hit animation.

Commited the "heroe.cpp"
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3707  
Old 2012-07-14, 14:39
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I changed a line of code in hero.cpp to this:

else if(behaviour==BEHAVIOUR_NORMAL)
{
if(can_get_over&&key_forward&&(current_anim=="walk_loop"||current_anim=="walk_start"))
next_anim="get_over";

I figured that the climb over animation should ONLY play when you're walking, since it would often play when climbing on a ladder and near the top. I'm not sure if I did it correctly, but it seems to have fixed the problem.

Also fiddled with the climb animation, so twinsen no longer falls after he climbs to the top of a ladder. And I adde dthe climb_over animation to the Athletic mode.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure

Last edited by Jasiek; 2012-07-14 at 15:24.
Reply With Quote
  #3708  
Old 2012-07-16, 02:50
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
@Horadrim : I'll check what happen
@Jasiek : I'm OK with all the changes you made

I've redone the sound engine. It only has 8 channels now so Horadrim you should ear all the sounds now. Also reviewed sound attenuation. In the test map, captain should say something only earable when close to him. It's only for test purpose (on other maps it plays in loop sorry). Finally the sound are running in a parallel thread, meaning the tune will load while you play the game. It's first time I do multithreading, and first time I use mutex so I'm not 100% sure what I'm doing ! The new library is called pthread.

Please feedback !
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3709  
Old 2012-07-16, 10:51
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
One thing is I still can't compile without commenting out dos.h and conio.h

I mananged to find both conio.h and dos.h but the dos.h I found needs a file called pc.h which I can't find anywhere.

I'm not sure if I'm missing something, or if you didn't commit these files.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure

Last edited by Jasiek; 2012-07-16 at 10:58.
Reply With Quote
  #3710  
Old 2012-07-16, 11:02
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
those lines can be deleted
those files are not needed
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3711  
Old 2012-07-16, 11:04
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I don't have any sounds though.

Unless the config works now, in that case it was disabled in there.

EDIT:

it seems to work once I turned it on in the config.


Is there any way to tweak the climb over? Twinsen tries unsuccessfully to climb many objects in the sewers that shouldn't be climbed.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3712  
Old 2012-07-16, 11:29
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
sound is not linked to config file, do you always ear sound ?
climbing could be done only on objects having lateral face with ladder texture (in physics shell). Let me know if you like the idea.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3713  
Old 2012-07-16, 15:28
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Yeah, that seems like an optimal solution.

How about that weird hero behaviour when in one of the custom cameras?
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3714  
Old 2012-07-16, 15:34
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
I will check what happen
About the obstacle trick I changed my mind. I prefer to have one texture for climbing and another one for obstacles. That will simplify coding and accelerate physics (only one raycast)

Edit : I guess ladder and obstacles texture should be both in level shell only, not object specific. You could have sandbags as we have now but with an extra obstacle texture surrounding it in the level.
__________________
Little Script Adventure[thread][download]

Last edited by David; 2012-07-16 at 15:42.
Reply With Quote
  #3715  
Old 2012-07-16, 15:54
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Yeah, it seems prudent that we have the climbable obstacles as a separate texture in the collision shell - just like ladders.


Btw. I had this weird error yesterday. I would duplicate a sensor in the testgrid, then write in the lua console, and save the map, and when I would load the map again the console would spout gibberish (lot's of unintelligible characters) and refuse to run the level.

The map would run again if I delete the LUA script I've written in, in a text editor, but when I ran the level in the editor, in the lua console I got two or three weird characters.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3716  
Old 2012-07-16, 16:21
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Also, I was thinking if we could have XYZ coordinates in the lua code for changing the level? This way you'll be able to choose the place to which you "send" the player.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3717  
Old 2012-07-16, 17:34
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
jump weird behaviours are fixed. You don't fly in the camera zone anymore. Also releasing shift key won't end the jump at half way. I remember original game let you do this, maybe for the gameplay ?

For the LUA bug, I would need more step details

For the XYZ thing, I guess we should setup the node instead.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3718  
Old 2012-07-16, 18:42
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
My rationale with giving coordinates is that there will be multiple points of entry per level.

Unless, we're going to add a sensor called level_entry or something like that and setup nodes for it....

And then point to it from a different level and indicate the node...


I'll write you more steps with the lua console later.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3719  
Old 2012-07-16, 19:12
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
I meant to specify nodes to twinsen itself, setting the different entry points in a list of nodes.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3720  
Old 2012-07-16, 19:34
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
here is new testmap with obstacle texture. Now I'll update the code so heroe can only use obstacle animation when in front of those faces
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3721  
Old 2012-07-17, 01:13
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
These are the steps you need to take to get to a crash:

- Start the test level
- Duplicate a sensor
- write this in lua console for that sensor:

Quote:
Originally Posted by code
if collision_between("sensor.003","heroe") then
load_map("assets/testgrid.map")
end
- test code in game mode (it works!)
- turn game mode off
- reload the map
- see it crash with something like this as the console output:

Quote:
Originally Posted by error
loading object =�g��g�x�U x�U ỂỂểểểểểểỄỄỄỄỄỄễễễễễễỆỆỆỆỆỆỆệệệệệệ ỈỈỉỉỊỊịịỌỌọọỎỎỏ�ᆄ�)
no nodes !
this can vary and be longer or shorter.
I commited a broken map.



A completely different thing I'm getting is that as soon as I start the editor I can hear a looping "wait a second you forgot to take your pills" voice all the time.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure

Last edited by Jasiek; 2012-07-17 at 20:42.
Reply With Quote
  #3722  
Old 2012-07-17, 11:53
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
I think it is solved.
physics should render correctly now
Also removed the annoying sound
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3723  
Old 2012-07-17, 12:08
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Awesome!

The nodes idea seems good I think - for the level transitions.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #3724  
Old 2012-07-17, 18:26
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
selected box or capsule now highlights
*_level render as matt material, with lighting too
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #3725  
Old 2012-07-17, 20:41
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Cool, I'm not sure if you've noticed but now when Twinsen is on the platform riding down he falls while on it.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
Reply

Tags
awesome, demo, engine, lba, lba1r, little bigger adventure, little script adventure, non profit, opengl, opensource, tools

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link on mbn main page Vral The site and forum 19 2005-11-04 05:17
main page Neko LBA DM 3 2001-04-29 22:12
Why does no one visit the main site? CS2x The site and forum 42 2001-02-01 18:24


All times are GMT +2. The time now is 10:38.


News Feed
Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2021, the Magicball Network