Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO3] Adding Map Variables


Tashology
 Share

Recommended Posts

Hello,

I am trying to program a system which will save an owner for each map. I have added the variable .MapOwner to both the server and the client but it just won't load or save it and whenever I try to save the map owner, the client crashes.

Any advice on how to add extra Map variables?

Thanks!
Link to comment
Share on other sites

Well, if you don't want to do any programming, you can use events and the variables there. I'm a bit rusty on which variables are which but you should be able to use them. If you're hard set on programming then someone else can help you with the packets better than I can.
Link to comment
Share on other sites

I get a subscript out of range error on the following sub:
(Highlighting the ">>" line)

```
Public Sub UpdateMapBlock(mapnum, x, y, blocked As Boolean)

   If blocked Then
       MapBlocks(mapnum).Blocks(x, y) = 9
   Else
  >>  MapBlocks(mapnum).Blocks(x, y) = 0
   End If
End Sub
```
And yeah, I deleted the maps in both folders.
Link to comment
Share on other sites

oh my bad lol, didn't see you said what it was in the post above mine(woke up like 20 mins ago so my bad)

Anywho, i would try looking at the values of mapnum, x, and y, and make sure that they aren't abnormal. afterwards, if this is the client, i would try seeing what the server is sending out first, if it's the server crashing, check what the client is sending out
Link to comment
Share on other sites

  • 1 month later...
Hello, I'm brazilian, then… sorry my Bad English.

You Want made one "Player OwnerMap System", like -> House System,

Learn First a USING Commands -
- GetVar and PutVar.

Only need made this save in one Blank Note in Server, to Save and Load, and Check too, if the player is a owner of maps.

Using Put i will save the values in the blank setted, and using Get will search for the variable in the note saved.

Is really simple to made that.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...