Load Room completely from Internet

Started by Endres, Thu 30/09/2010 11:27:07

Previous topic - Next topic

Endres

I am making a "Chat"-Like Game using the Plugin API. Every Player is connected via Internet and every single Action (Moving, Inventory, Ints,...) will be send to anybody who also is online. So there are many possible interactions to share over the Internet.

I am working to let players make own rooms. It is possible to change Backgrounds (GetBackgroundScene) and Masks (GetRoomMask) at runtime. But I don't know if it is possible to...

- change the Room-Size before changing the Background, so it may be possible to make scrolling rooms of different sizes at runtime.
- add Room-Objects / change Hotspot-Names.
- get access to Object / Hotspot Scripts and edit them.

I think I have to make use some kind of tricks, but if there is any "hidden" function or you know better or you can explain me why it couldn't work, please answer!

Thank You,
Endres

Pumaman

No, there is no functionality to change those things at runtime.

Endres

Okay, thanks for your reply. I think I'm getting through it. (Do you say it like this?)

1. I'm handling the RoomSize now like my "NetRoom" is 1280 in width (and standard 200 in height) and I'm using some Viewport script. (iRoomWidth is one of many Variables my Plugin returns)
Code: ags
if(player.x>=iRoomWidth-160) SetViewport(iRoomWidth-320, 0); else ReleaseViewport();

Well, the maximum size is 1280x200, but that should be really enough. ;)

2. I think, I will change the GlobalScript to modify HotSpot Names "virtually" (like only to edit the Label in the GUI) and I bet it would work.

3. And, nevermind, Runtime-Scripting from Plugin is not really needed. It would be good, if there would be some kind of access through the Plugin API, but if not, it is no problem, because I will not go any further to break my fingers or something while coding that much. ;D

Next big thing is Views / Inventory Items through internet. But it should be much easier than some scripting through internet. Of course I will need to buffer them (lets say, I have already 100 empty Chars in my Game, because it is the only possibility to let 100 players be online simultanously) but I don't really think that any limitations could be a big problem. :)

I think all in all it might match the simple question: What would be a world without limits?  :D

Rulaman

Hi Endres,

send Chris a copy of your game.
Hopefully he ist so amazed, that he will code it four you. ;D
Joking! It would be glad, if something like this will be possible in the future. But I think this is a good handful of work for you. (And your little helpers).

Greetings
Rulaman

PS: If Chris had a copy, he could join us sometimes.
Zak: Komm mit mir Sushi.
Zak: Come with me Sushi.

Endres

Well, I am now sitting at these problems, but they don't seem to be so hard, I think I will finish my "NetRoom-Engine" today or tomorrow.

I could translate my game to English so Chris (AGS rules!) and other interested people from other countries could join us sometimes...

@rulaman, you had a Translating-Tool. Last time I tried to download it, the link was broken. Is it anywhere on the Internet or could you upload it for me? Otherwise I had to translate it by hand. ;D

Fatal M

This tool is called "AGS Linguist".

http://www.maniac-mansion-mania.com/index.php?option=com_contentask=view&id=666&Itemid=76

I dont't know if it's the latest version. Maybe the layzy resources-guys at MMM missed it.
Fatal2

Endres

Thank You very much. ;D
I didn't thought that it would be on "our" resources-site...
But maybe rulaman has a newer Version? Don't know.


Going to be Off-Topic... ;)

Rulaman

There's only a newer version of agslrelease.

So the AGSLiguist is the newest version.

Rulaman
Zak: Komm mit mir Sushi.
Zak: Come with me Sushi.

SMF spam blocked by CleanTalk