Commit Graph

633 Commits

Author SHA1 Message Date
f71e1349c1 temp fix for U16toU8 edgecase 2020-08-21 22:11:04 -05:00
cff382a8ce sets a limit for sendData() 2020-08-21 21:32:22 -05:00
bbd6c5b532 moved header libraries 2020-08-21 21:03:12 -05:00
JadeShrineMaiden
ab6df26f92
Disabled GM mode (#22)
Temporarily disabled, players can now use item commands without GM mode.
2020-08-21 19:38:10 -05:00
FinnHornhoover
786ee5f4f4
fixed PROTOCOL_VERSION not being defined (#23) 2020-08-21 19:37:59 -05:00
c5efbceca3 added sanity checks for sendPacket() 2020-08-21 19:33:42 -05:00
bf6c5d1b6b fixed NPC scrape 2020-08-21 18:08:42 -05:00
fdfa7b5776 Merge branch 'master' of https://github.com/OpenFusionProject/OpenFusion 2020-08-21 17:14:38 -05:00
f289c72f6f populated NPCManager 2020-08-21 17:14:11 -05:00
Raymonf
7318d9b578
AppVeyor: Build all protocol versions on Linux (#21)
* let's try this

* Update appveyor.yml
2020-08-21 16:39:30 -04:00
JadeShrineMaiden
caaffcbe3d
Item Deletion and extra fixes (#17)
* Deleting Items

* fixes

* fixes 2

* Basic GM login

* Update ItemManager.cpp

Co-authored-by: Raymonf <raymonf@outlook.com>
2020-08-21 15:09:52 -05:00
3fe1a02200 include 0104 if PROTO_VERSION is undefined 2020-08-21 14:29:09 -05:00
cd19c54824 itemManager now uses a reference to the PlayerView 2020-08-21 14:28:14 -05:00
Raymonf
88d08ffca7
Fix MSVC compilation by not using non-standard struct initialization (#20)
Co-authored-by: Raymonf <Raymonf@users.noreply.github.com>
2020-08-21 14:17:06 -04:00
Raymonf
7a46f061ed
Fix Windows CI by removing leading 0 in packet versions 2020-08-21 13:50:09 -04:00
dongresource
df18f3ccd1
PROTOCOL_VERSION, test items, MOTD fix (#18)
* Cleaned up protocol selection.

* cmake now works even if protocol option is omitted
* make now supports protocol selection
* removed PACKET_VERSION/CNPROTO_VERSION* redundancy
* ubuntu appveyor script has yet to be written
* cleaned up some trailing spaces

* Add some test items.

Ironically, this change is untested.

* [bugfix] Transmit MOTD when entering the game, not when loading screen fades.

This fixes unnecessary retransmission when /warping.
2020-08-21 12:38:45 -05:00
1669ee3660 Merge branch 'master' of https://github.com/OpenFusionProject/OpenFusion 2020-08-21 00:31:09 -05:00
5d0b30b4cb added AINVEN_COUT for 0728 2020-08-21 00:31:00 -05:00
Raymonf
0041da795a
Build multiple packet versions on AppVeyor for Windows (#14)
* Move to PowerShell script for Windows build

* Allow CMake to override struct version

* PACKET_VERSION option

* Rename CNPROTO_CUSTOM to CNPROTO_OVERRIDE

Co-authored-by: Raymonf <Raymonf@users.noreply.github.com>
2020-08-21 01:18:19 -04:00
Raymonf
24be117e28
Add Discord badge to README (#13) 2020-08-20 23:26:27 -04:00
c7f9358ae5 Merge branch 'master' of https://github.com/OpenFusionProject/OpenFusion 2020-08-20 22:25:53 -05:00
eee1b52722 fixed ItemManager 2020-08-20 22:25:39 -05:00
CakeLancelot
e3d53e8dcf
Add Discord badge to README 2020-08-20 22:04:35 -05:00
Raymonf
b89df8d497
Mention AppVeyor in the readme 2020-08-20 22:54:11 -04:00
Raymonf
faf73fc835
Initial AppVeyor build configuration (#12) 2020-08-20 22:46:48 -04:00
JadeShrineMaiden
aa2adcd9e2
Items Implementation (#11)
* Item Manager (Initial Implementation)

* Item Manager (Second Phase)

* Item Manager (Phase Three)

* Not Working Code

* Inventory Implementation (Complete?)

* Items Implementation

-Fixed Indentations
-Final touches to make it all work

* Update Makefile

* Added small comments

-- needs to be fixed
2020-08-20 21:10:14 -05:00
dongresource
e044b4251a
Cleanup indentation. (#10) 2020-08-20 19:37:34 -05:00
7b085e9c8b added sanity checks 2020-08-20 18:50:30 -05:00
Raymonf
da11220762 Allow opening CMakeLists as a CMake project in VS
Added another check just in case someone wants to do this for some reason. It's bad. You shouldn't do it.
2020-08-20 18:44:30 -04:00
1425074ccb edited config.ini default back, better plr pos 2020-08-20 16:59:32 -05:00
Raymonf
c66ac111ab Silence codecvt deprecation warning on VC++ 2020-08-20 17:47:38 -04:00
Raymonf
32a37acd5a Update CMakeLists to use correct binary name and pthreads if not using MinGW/VS 2020-08-20 17:47:27 -04:00
49fbdd2154 Merge branch 'master' of https://github.com/OpenFusionProject/OpenFusion 2020-08-20 16:43:57 -05:00
6857f50c30 added basic NPCManager 2020-08-20 16:43:48 -05:00
Raymonf
c827b5a1b6 Lower CMake version requirement to 3.13
Technically we could probably move this all the way down to 3.6, but 3.13 should be a good version to target.
2020-08-20 17:21:43 -04:00
Raymonf
7f8e7dfa1c
Use regular old MIT license 2020-08-20 16:17:53 -04:00
Raymonf
09b21c54d3
Update compilation instructions 2020-08-20 16:10:29 -04:00
Raymonf
c549192f59
CMake build support (#8)
* CMake build support

* Make things nice for VS users

Co-authored-by: Raymonf <Raymonf@users.noreply.github.com>
2020-08-20 15:59:54 -04:00
6843faeb8d fixed windows makefile 2020-08-20 13:31:40 -05:00
b43628a19d faster player distance check 2020-08-20 13:19:03 -05:00
b94f602537 fixed window build 2020-08-20 12:05:01 -05:00
dongresource
fa5f194cc7
Standardized Makefile. (#7)
* Standardized Makefile.

* Incremental compilation
* C++ compilers are called CXX
* Removed excessive comments for well-understood things
* Added clean target
* Proper .PHONY usage
* Updated .gitignore for object files (+ ctags, and vim temp files)

* Add mkdir -p bin.
2020-08-20 12:03:15 -05:00
fbc3c79aa2
Merge pull request #6 from CakeLancelot/add-more-movement-packets
Add zipline, slide, cannon, and jump pad packets
2020-08-20 11:38:13 -05:00
93d973bf21 small CNStructs.hpp refactor 2020-08-20 11:37:47 -05:00
7cf239e3af added 0728 structs + small CNStruct.hpp refactor 2020-08-20 11:36:29 -05:00
CakeLancelot
14d556976d Add zipline, slide, cannon, and jump pad packets
Cannon still looks wonky from other player's PoV, something's up with the rotation - will investigate later.
2020-08-20 11:26:26 -05:00
af6158fbb2
Merge pull request #5 from dongresource/master
Add example config.ini with documented options.
2020-08-20 10:53:45 -05:00
c0abab39ae better structs header 2020-08-20 10:45:50 -05:00
dff6e8c23b better structs header 2020-08-20 10:44:49 -05:00
d6e1f57c23 merged master 2020-08-20 10:43:37 -05:00