[release]What is it?
PCMod 2 is an addon for Garry’s Mod 10. It adds to GMod a selection of tools and entities that can be used to form an in-game computer network. You can choose between a range of hardware and software components, and wire the various components together using the different ports the entities have. Example entities include: computer towers, monitors, printers, speakers, network routers, backbone routers and much more!
How is it different (and better) than PCMod 1?
The code base has been completely rewritten from scratch – both client, and server. This makes development of your own PCMod based addons and plugins a lot easier to create and manage. Everything is ordered neatly into libraries and corresponding files with version/revision numbers.
The monitors feature a fully interactive 3D 2D interface. No derma interfaces like from PCMod 1, everything is done on the screen. The monitors are synced near perfectly across the server with data transfer optimisation, meaning there is very little lag per monitor. The screens are fully controlled from the server, which is also a handy fact for developers.
The engine is flexible, meaning PCMod 2 is an excellent base with which you could write your own addon using PCMod 2 that utilises every aspect of it – including the automatically synced 3D 2D interfaces, the beaming library and the many extra functions provided (such as helpful string, table and derma functions).
Why should I use it on my server?
PCMod 2 is perfect for a Role-Play situation. What’s more, it is completely fitted out for role-play – the addon includes a Role Play Buy menu that – with a little configuration on your behalf, takes money from your in-game wallet and spawns the entity. Bear in mind though, the player must have access to the tool gun and the two wiring tool modes in order to be able to actually wire the entities together.
There is a selection of STools available for use that allows you to spawn the entities. You can use the entities in combination with WireMod in order to build your contraptions through use of the I/O device.
PCMod 2 will work on any game mode that is sandbox derived, but the players will need access to the tool gun and the wiring tool modes in order to wire together the entities. For the spawning, the role-play menu can be utilised.
What sort of connections/wire types are there?
All connections are two-way and are self to self connections – so USB is just the standard USB port type to itself (ie, no PS2 -> USB without an adapter entity).
Connects a PC Tower to a monitor. Used primarily to send the screen data to the monitor, but also to send input from the monitor to the tower (all screens in PCMod 2 are touch screens!)
Connects a Keyboard to a monitor. The keyboard doesn’t actually send data to the tower, it just tells the client to open the on-screen keyboard when you lock on a monitor.
Connects a PC Tower to a router. Transfers data packets both ways between the entities.
Connects a router to a back-bone router or another router. Transfers data packets both ways between the entities.
Connects a speaker to a PC Tower. Used to play sounds. Note that the sound isn’t actually streamed down the wire, so the PC can safely be turned off and the sounds should continue.
Connects a miscellaneous device to a PC Tower. Devices include printers and I/O devices.
What ‘programs’ are there?
There are many programs to choose from and install with the Install Disk. The major highlight between PCMod 1 and PCMod 2 is ‘Notepad’. In PCMod 1, you only had printer-soft that limited you to 255 characters and you could not save your stuff. Notepad, however, allows you to create, save, print, and open documents of unlimited size. What’s more, the documents are saved to the tower’s hard-drive, so that you can use the Hard Disk Copier (see below) to save all your work!
Also included in PCMod 2 (that wasn’t in PCMod 1) is a Firewall program, where you can dynamically block/unblock incoming traffic to certain ports and a Net-Tools program (similar to ‘Pinger’) that allows you to run trace-routes across the virtual network.
Do you get Operating Systems?
Yes. When you spawn a PC tower, there are 2 operating systems to choose from: ‘Personal’ OS, and ‘Server’ OS. They correspond to the ‘PC’ and ‘Server’ entities in PCMod 1. What’s more, the system is coded in such a way so that if you have enough experience with Lua, you can even create your own operating systems! Perhaps you could recreate Mac or Linux.
Can I customise PCMod 2?
Yes. There is a handy configuration file which enables you to change the core settings of PCMod. If you want to change something such as the cost of a keyboard from the RP menu, it’s all changeable in that configuration file. It is also easy to create your own themes and programs for PCMod 2, using existing programs as a reference. As explained above, it is even possible to create your own operating systems. In fact, you can even go as far as creating your own drivers for the towers! (Current drivers include: display drivers, network drivers, USB drivers etc).
What else is there to know?
There is a very handy Swep you can spawn/buy called the ‘Hard Disk Copier’. This has 4 slots, and allows you to copy the hard-drive of any computer tower and save it to the server for later use. You can disconnect and reconnect and all your hard-drives are still saved. When you want to, you can select the slot and paste the hard-drive right over the old one.
The entities are advanced duplicator compatible also – to a point. The only thing saved by the duper is the hard-drive. Thankfully, all the settings on the PC (such as the theme) are saved on the hard-drive.[/release]
IP: No Official Server
The server only has 10 slots, is on gm_construct and is sandbox. Feel free to join anytime and try it out.
There WILL be bugs, even though it has been tested in every aspect. If you find one, post it either here or on the FortFN forums. Provide as much information as you can, including how to reproduce the problem, any Lua errors you get etc.
There are 2 chat commands: !pcbuy, and !pcsettings.
!pcbuy opens the RolePlay Buy Menu - which I enabled so you can see what it's like.
!pcsettings opens the options menu - you can enable debug mode here.
There is a manual included with the download.
Please post any videos/screenshots you make!
Some crappy low-res images of PCMod 2 about 6 days before beta release:
Up to date image:
thomasfn - Project leader, Developer
Gmt2001 - Developer
Chipstik - Modeller
WireMod Team - Code Source
Nighteagle - Code Source
LuaBanana - Datastream Module
Kogistune - Keyboard Input Module
GamePlayr - Logo Designer
Latest stable download (v2.0.3):