Modules and Plugins.

Started by Digger909, Mon 09/02/2009 20:20:27

Previous topic - Next topic

Digger909

Please tell me, how I can use modules and plugIns, in my game. I copy some modules from another forum, but I don't understand how it is work.. And in where folders i must put files of plugins and modules? ??? ??? ???

rbaleksandar

#1
You have to put the files of each plugin in the same directory where you're AGSEditor.exe is.

For example:
C:\Program Files\Adventure Game Studio 3.1.1

AGS recognizes them automatically. When you start creating your game, you can see all available plugins that you can use in the tree-menu on the right of the editor. Right click on the plugin you want to use, and then click "Use this plugin" in the context menu that'll appear.
I am a mighty pirate. Arrrrgh!

Matti

Or in your game right-click "Scripts" in the panel, choose "import script" and then the plugin (.scm), wherever it may be. Then it will be part of your game.

Pumaman

It's important to note that Modules and Plugins are different things.

rbaleksandar's instructions are for Plugins, and matti's instructions are for Modules.

Matti

Ha, just when I posted this I was wondering what the difference between plugins and modules might be. I still don't know but I've only used modules yet..

Khris

Modules are platform-independent pieces of AGS script, plugins are compiled dlls written in C or something similar that'll only work in a Windows environment.

rbaleksandar

Quote from: Pumaman on Tue 10/02/2009 00:30:07
It's important to note that Modules and Plugins are different things.

rbaleksandar's instructions are for Plugins, and matti's instructions are for Modules.


Oh, yes. Forgot to write about the modules ;D But matti did that instead ;)
I am a mighty pirate. Arrrrgh!

Digger909

I download module from SSH. SimplyRain and SimplySnow. Then i click rightmousebutton on the Scripts, then click Import Script, and then choose file SimplyRain.scm  ...   In the scripts add two script: SimplyRain.ash  and  SimplyRain.asc   .....  But, when I click play, it have error:

SimpleRain.asc(14): Error (line 14): Undefined token 'RawSaveScreen'

What's wrong??? ???

Gilbert

That means the SimpleRain module isn't compatible with the current version of AGS. I've checked. The SimpleSnow module has been updated to support AGS V3.1+ but SimpleRain has not. There were huge changes in the RawDraw system since AGS V3, so old codes utilising the Raw functions need to be updated.

You simply cannot use SimpleRain at the moment, unless the module is updated.

rbaleksandar

Well, since this thread has something to do with my question, I'll shoot ;)

1) I can't download FoA Template :( And does it even work with v3.1.1?
2)Standard Scumm GUI doesn't work with v3.1.1...At least by me. It's not displayed in the New Game Templates.

Thanks in advance!
I am a mighty pirate. Arrrrgh!

Trent R

If a template doesn't work with AGS 3, it might be too old of a template. Try:

1) downloading AGS 2.72
2) loading the template into 2.72
3) immediately saving as a new template
4) loading the new version in AGS 3
5) checking all the code and making sure it'll still work

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

rbaleksandar

#11
Thanks, I'll try it.

EDIT: It works  ;D ;D ;D

The only thing that bothers me is the existence of so many cursors (only one of them is being used actually - LEC) and 2 more GUIs. I think it was made from the default game (since the demo has only Rodgers in it  :P). Can I remove them safely (want to know that for future projects too)?

EDIT2: Yep, it's save :) Removed some of them and everything still works fine ;) (some of the cursors cannot be removed  ???)
I am a mighty pirate. Arrrrgh!

SMF spam blocked by CleanTalk