Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Aleworks Input with Fukuyamas Trainactors

I've been trying to get the Aleworks input modules into my game for awhile now. First of all there was that peculiar problem with Game_Map hanging whenever you pressed a directional button. It was moaning about arrays not be a recognised input. Pouring over the script, I found that the directions did indeed return arrays, such as: DOWN = [98, 40]. By changing this and others to basic interger inputs using the correct keys, like: DOWN = 40, things appear to be working.

However, and this is my problem...Fukuyamas train actors is now broken. The train just sits around after being summoned and doesn't follow the player.

Doing a further test, I implanted the Trainactors script into the demo for the Aleworks (basically a fresh slate except the input module), and indeed, the same error was produced.

Obviously, the Trainactors works off of its own kind of interpreter (or maybe just the old kind), and the AIM totally changes it, so they're kinda at odds with one another. But see, I can't really do without either, and I'm stumped on getting them to co-operate. Any ideas?

Here's all the related scripts:
-----
EDIT: Actually theres not...as, oh cack, there's a maximium post size, I take it...

See the below post.
 
:cry: Actually, I can't fit all of the scripts on here. The AIM is too big by itself even if I try and make an additional post...

Sorry, guys.
Instead, get the AKM demo from here:
http://hometown.aol.com/Der%20VVulfman/ ... Addon1.zip

Then add Fukuyama's trainactors to the demo. (Below)
Code:
# train_actor 
=begin 

Caterpillar walking script 

Copyright © 2005 fukuyama 

This library is free software; you can redistribute it and/or 
modify it under the terms of the GNU Lesser General Public 
License as published by the Free Software Foundation; either 
version 2.1 of the License, or (at your option) any later version. 

This library is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
Lesser General Public License for more details. 

You should have received a copy of the GNU Lesser General Public 
License along with this library; if not, write to the Free Software 
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA 

[url=http://www.gnu.org/licenses/lgpl.html]http://www.gnu.org/licenses/lgpl.html[/url] 
[url=http://www.opensource.gr.jp/lesser/lgpl.ja.html]http://www.opensource.gr.jp/lesser/lgpl.ja.html[/url] 

=end 

# Config.rb 
#============================================================================== 
# â–  Train_Actor::Config 
#------------------------------------------------------------------------------ 
# Caterpillar movement of actor is carried out on map 
#============================================================================== 

module Train_Actor 

# â—
 
Theoricaly this will be compatible with my script. I haven't tested it, because I am not in my computer, but it shall work. Here is the train actor edited script:
Code:
# train_actor 
=begin 

Caterpillar walking script 

Copyright © 2005 fukuyama 

This library is free software; you can redistribute it and/or 
modify it under the terms of the GNU Lesser General Public 
License as published by the Free Software Foundation; either 
version 2.1 of the License, or (at your option) any later version. 

This library is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
Lesser General Public License for more details. 

You should have received a copy of the GNU Lesser General Public 
License along with this library; if not, write to the Free Software 
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA 

[url=http://www.gnu.org/licenses/lgpl.html]http://www.gnu.org/licenses/lgpl.html[/url] 
[url=http://www.opensource.gr.jp/lesser/lgpl.ja.html]http://www.opensource.gr.jp/lesser/lgpl.ja.html[/url] 

=end 

# Config.rb 
#============================================================================== 
# â–  Train_Actor::Config 
#------------------------------------------------------------------------------ 
# Caterpillar movement of actor is carried out on map 
#============================================================================== 

module Train_Actor 

# â—
 
Woah, the man himself came to my aid. Yes, it works fine.

Gosh, something so simple, though thats usually the way with these kinda things, isn't it...lol...

Thanks for the help vgvgf.

This TOPIC is Resolved. Mod can close it if they like

...Now I just need to figure out where this extra lag is coming from...ROFL...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top