I've been looking through script files for wargus - mainly "guichan.lua" and "network.lua", trying to see how I can implant the Tileset Selection option for multiplayer, because the original had the option, and now the Single Player mode in stratagus has this option, I'm trying to LUA script the option into the multiplayer version - which is "network.lua", along with changing the behaviour and look of the multiplayer screens to better reflect the original games look.
So far I have a dropdown list to select the tileset, and the name of the tilesets available, but when it comes to showing the name in the dropdown list for the people joining the game it stays on "map default", and if I start the game, wargus crashes for the creator (server) and for the (client) you can scroll, but cannot interact with anything because the server has crashed.
I need help coding the option for the multiplayer. I've looked in the source code to see what the "CServer" class has in terms of tileset selection, and there is one called "TilesetSelection" and I've tried using this in "network.lua" to get the game to use the selected tileset name, but it causes the game to crash.
I want tileset selection for multiplayer and I need help! Even hints and tips to make it work would be good. I'd like to solve this myself, but I just need a few pointers.
- Board index Stratagus Core Development
- Search
-
- It is currently Thu Apr 25, 2024 10:11 pm
- All times are UTC+10:00
Multiplayer Tileset Selection
- DinkyDyeAussie
- Posts: 260
- Joined: Fri Feb 10, 2012 10:39 am
- Location: Australia
Jump to
- Stratagus Core
- ↳ General Discussion
- ↳ Stratagus League
- ↳ Steam Group
- ↳ Development
- ↳ AI Development
- ↳ Lua Development
- ↳ Map Development
- ↳ Game Development
- ↳ Lobby Development
- ↳ Compiling and Porting
- ↳ Help & Bugs
- ↳ Education
- ↳ StratagusAI
- ↳ Research Papers
- ↳ Resources
- ↳ Off Topic Discussion
- Stratagus Games
- ↳ All-Team Organizer
- ↳ Battle for Mandicor
- ↳ Doom Wars
- ↳ Stargus
- ↳ Timeless Tales
- ↳ Wargus
- ↳ Wargus Improvement Project
- ↳ War1gus
- ↳ Wyrmsun
- ↳ Other Projects
- ↳ Acorn Hunt
- ↳ Astroseries
- ↳ Deans of Dishonesty
- ↳ GnomeGnation
- ↳ Kingdom of Beasts
- ↳ Magnant
- ↳ RoboVasion
- ↳ World Domination
- ↳ Windgus
- Stratagus Family
- ↳ ALE Clone
- ↳ BOS Wars
- ↳ Commander Stalin