51 Commits

Author SHA1 Message Date
Alex King
97e50ced93
[Cleanup] Delete deprecated/perlxs folder (#3110)
# Notes
- This entire folder is unused.
2023-03-17 06:23:30 -04:00
Alex King
2a6cf8c8e7
[Strings] Add more number formatters (#2873)
* [Strings] Add more number formatters

# Notes
- Adds `Strings::ToUnsignedInt` for `uint32` support.
- Adds `Strings::ToBigInt` for `int64` support.
- Adds `Strings::ToUnsignedBigInt` for `uint64` support.
- Adds `Strings::ToFloat` for `float` support.
- Replaces all `std::stoi` references with `Strings::ToInt`.
- Replaces all `atoi` references with `Strings::ToInt`.
- Replaces all `std::stoul` references with `Strings::ToUnsignedInt`.
- Replaces all `atoul` references with `Strings::ToUnsignedInt`.
- Replaces all `std::stoll` references with `Strings::ToBigInt`.
- Replaces all `atoll` references with `Strings::ToBigInt`.
- Replaces all `std::stoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `atoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `std::stof` references with `Strings::ToFloat`.

* [Strings] Add more number formatters

- Adds `Strings::ToUnsignedInt` for `uint32` support.
- Adds `Strings::ToBigInt` for `int64` support.
- Adds `Strings::ToUnsignedBigInt` for `uint64` support.
- Adds `Strings::ToFloat` for `float` support.
- Replaces all `std::stoi` references with `Strings::ToInt`.
- Replaces all `atoi` references with `Strings::ToInt`.
- Replaces all `std::stoul` references with `Strings::ToUnsignedInt`.
- Replaces all `atoul` references with `Strings::ToUnsignedInt`.
- Replaces all `std::stoll` references with `Strings::ToBigInt`.
- Replaces all `atoll` references with `Strings::ToBigInt`.
- Replaces all `std::stoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `atoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `std::stof` references with `Strings::ToFloat`.

* Rebase cleanup

* Changes/benchmarks/tests

---------

Co-authored-by: Akkadius <akkadius1@gmail.com>
2023-03-04 17:01:19 -06:00
Alex
00fb9bc9f9
[Bug Fix] Zone Heading for Binds, Summons, Teleports, and Zoning. (#1328)
* For as long as I can remember people have had issues with zoning in, facing the wrong way, and walking through a zone line.

With this we will be able to set zone's safe heading as well as preserve heading on summon (NPC or GM) and teleports between zones.

This affects several pre-existing quest methods and extends their parameters to allow for the addition of heading.

The following functions have had heading added.
Lua
- client:SetBindPoint()
- client:SetStartZone()

Perl
- $client->SetBindPoint()
- $client->SetStartZone()
- quest::rebind()

SetStartZone parameter list was fixed also.

This converts some pre-existing methods from glm::vec3() to glm::vec4() and has an overload where necessary to use a glm::vec3() method versus glm::vec4() method.

This shouldn't affect any pre-existing servers and will allow PEQ and others to document safe headings for zones properly.

* Removed possible memory leaks.

* Fix SQL.

* Fix client message.

* Fix debug log.

* Fix log message.

* Fix call in rebind overload.

* Fix floats.

* Add default to column.
2021-04-22 22:49:44 -05:00
Akkadius
9f25c9070c Refactor message functions 2019-08-11 00:14:02 -05:00
Akkadius
d566bb4728 Remove commented printf : Used up to slot %d of %d in links\n 2015-01-20 01:35:04 -06:00
Akkadius
9ed412e056 Remove commented printf : \tLinkTo %d: dest %d, reach %d\n 2015-01-20 01:35:03 -06:00
Akkadius
5dfb66bd63 Remove commented printf : \tLinkFrom %d: dest %d, reach %d\n 2015-01-20 01:35:02 -06:00
Akkadius
dc44c1c361 Remove commented printf : Node %d: (%.2f,%.2f,%.2f) LO %d, D %d\n 2015-01-20 01:35:01 -06:00
Akkadius
2ccfc5b52d Remove commented printf : Filling node %d/%d n=0x%x, lb=0x%x, curl=0x%x/0x%x\n 2015-01-20 01:34:59 -06:00
Akkadius
33a840a0e7 Remove commented printf : Started With node index %d (0x%x)\n 2015-01-20 01:34:58 -06:00
Akkadius
6243a53e5c Remove commented printf : Edge crosses %d edges.\n 2015-01-20 01:34:53 -06:00
Akkadius
e4025545fe Remove commented printf : Checking combine LOS on %d, with %d edges.\n 2015-01-20 01:34:51 -06:00
Akkadius
ed4f2c7e14 Remove commented printf : Distbbb %f, ce2 %f, (%f,%f), (%f,%f)\n 2015-01-20 01:34:49 -06:00
Akkadius
bc84e4e80e Remove commented printf : Dist %f, ce2 %f\n 2015-01-20 01:34:48 -06:00
Akkadius
725a2d29a2 Remove commented printf : Starting clean at pos %d with %d nodes\n 2015-01-20 01:34:46 -06:00
Akkadius
40453f605d Remove commented printf : (%.3f,%.3f,%.3f) -> (%.3f,%.3f,%.3f) d2=%.3f\n 2015-01-20 01:34:44 -06:00
Akkadius
e7cfaf8bae Remove commented printf : IIN: (%.3f,%.3f) in (%.3f -> %.3f, %.3f -> %.3f)\n 2015-01-20 01:34:42 -06:00
Akkadius
d5401b41de Remove commented printf : Cut (%.3f,%.3f,%.3f) -> (%.3f,%.3f,%.3f) d2=%.3f\n 2015-01-20 01:34:42 -06:00
Akkadius
04bd05162c Remove commented printf : Got to node index %d (0x%x)\n 2015-01-20 01:34:40 -06:00
Akkadius
236e3e0d72 Remove commented printf : Node %d's distance from root is %d\n 2015-01-20 01:34:40 -06:00
Akkadius
767781bd0a Remove commented printf : trail = 0x%x(0x%x) (%.3f, %.3f, %.3f)\n 2015-01-20 01:34:40 -06:00
Akkadius
63496fd33c Remove commented printf : ;\n 2015-01-20 01:34:38 -06:00
Akkadius
5553c874ec Remove commented printf : ;\n 2015-01-20 01:34:37 -06:00
Akkadius
53b866d35c Remove commented printf : Frag 36 reference?: %ld\n 2015-01-20 01:34:37 -06:00
Akkadius
965f8bbbba Remove commented printf : Final node with %u faces, list offset %lu.\n 2015-01-20 01:34:37 -06:00
Akkadius
db4426c435 Remove commented printf : Find Region %ld in node %ld\n 2015-01-20 01:34:37 -06:00
Akkadius
6ba30c3fb2 Remove commented printf : Look for %s: got %s\n 2015-01-20 01:34:37 -06:00
Akkadius
562f7c1360 Remove commented printf : Final node with %u faces, list offset %lu.\n 2015-01-20 01:34:37 -06:00
Akkadius
8594d3d550 Remove commented printf : Find Region %ld in node %ld\n 2015-01-20 01:34:37 -06:00
Akkadius
34f1df1163 Remove commented printf : Final node with %u nodes, list offset %lu.\n 2015-01-20 01:34:37 -06:00
Akkadius
880b1e7a0d Remove commented printf : Node %d's longest path is %d\n 2015-01-20 01:34:36 -06:00
Akkadius
b1497cac56 Remove commented printf : pos=%d/%d\n 2015-01-20 01:34:36 -06:00
Akkadius
7c3502d5f2 Remove commented printf : 2015-01-20 01:33:31 -06:00
Akkadius
6bf8c217ad Remove commented printf : 2015-01-20 01:33:31 -06:00
Akkadius
072339d24c Remove commented printf : Opening %s.mod\n 2015-01-20 01:33:31 -06:00
Akkadius
0fc5247279 Remove commented printf : fnlen is %d, %s\n 2015-01-20 01:33:30 -06:00
Akkadius
2e4fd5f983 Remove commented printf : Returning %s\n 2015-01-20 01:33:30 -06:00
Akkadius
55cb66762c Remove commented printf : Node %u: (%.2f -> %.2f, %.2f -> %.2f)\n 2015-01-20 01:33:30 -06:00
Akkadius
9c6ba3164d Remove commented printf : Find Region %ld in node %ld\n 2015-01-20 01:33:30 -06:00
Akkadius
c1dca8f6a9 Remove commented printf : v1=%d, v2=%d, v3=%d, g=%d, unk=%d\n 2015-01-20 01:33:30 -06:00
Akkadius
63ab54bf1f Remove commented printf : Look for %s: got %s\n 2015-01-20 01:33:30 -06:00
Akkadius
36dda4ee0a Remove commented printf : Node %u: (%.2f -> %.2f, %.2f -> %.2f)\n 2015-01-20 01:33:30 -06:00
Akkadius
467272c334 Remove commented printf : Find Region %ld in node %ld\n 2015-01-20 01:33:29 -06:00
Akkadius
cc9b0ff089 Remove commented printf : Node %u: (%.2f -> %.2f, %.2f -> %.2f)\n 2015-01-20 01:33:29 -06:00
Akkadius
afdaba60fe Remove commented printf : New Color at: (%.3f,%.3f,%.3f)\n 2015-01-20 01:33:29 -06:00
Akkadius
db5778916e Remove commented printf : Missed: (%.3f, %.3f, %.3f)\n 2015-01-20 01:33:29 -06:00
Akkadius
84be3458b1 Remove commented printf : Named: %s\n 2015-01-20 01:33:21 -06:00
Akkadius
76586b5dbb Remove commented printf : %i: Basetex: %s\n 2015-01-20 01:33:19 -06:00
Akkadius
3138f0f9bc Remove commented printf : %s %s\n 2015-01-20 01:33:17 -06:00
KimLS
cd0824ee71 Moved some around, more renames 2014-08-21 22:43:33 -07:00