Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > ToME

Reply
 
Thread Tools Display Modes
Old August 12, 2021, 18:20   #11
fiery_mews
Scout
 
fiery_mews's Avatar
 
Join Date: Sep 2020
Location: Suburbia :(
Posts: 26
fiery_mews is on a distinguished road
Okay, @Grenoble, try this: https://github.com/jkatzmewing/tome2/tree/pure-c
fiery_mews is offline   Reply With Quote
Old August 18, 2021, 06:17   #12
Grenoble
Rookie
 
Join Date: Aug 2021
Posts: 7
Grenoble is on a distinguished road
Quote:
Originally Posted by fiery_mews View Post
having some problems with cmake and vs2019, but I'm getting close. Removing the lua looks like it was a lot of work! Was that you or AH?

Thanks for giving me a shout.
Grenoble is offline   Reply With Quote
Old August 18, 2021, 13:57   #13
fiery_mews
Scout
 
fiery_mews's Avatar
 
Join Date: Sep 2020
Location: Suburbia :(
Posts: 26
fiery_mews is on a distinguished road
@Grenoble

Good luck with the VS 2019 issues, sadly I can't help you there; I'm terrible with Windows stuff.

Removing Lua was all AnonymousHero. The C++ port and everything else of modernized ToME 2 has basically been his show; I've only contributed intermittently. My largest contribution IIRC was removing most of the trap code from the C++ port.
fiery_mews is offline   Reply With Quote
Old September 11, 2021, 18:31   #14
Grenoble
Rookie
 
Join Date: Aug 2021
Posts: 7
Grenoble is on a distinguished road
Got it! This was a great project to pick to learn about compilers, linkers, et al. Yours and AH's work is all in main, I want to take a look at some windowing bugs before I do another release.
Grenoble is offline   Reply With Quote
Old February 12, 2022, 16:22   #15
Gokudera ElPsyCongroo
Rookie
 
Join Date: Jan 2022
Posts: 14
Gokudera ElPsyCongroo is on a distinguished road
Quote:
Originally Posted by Grenoble View Post
Got it! This was a great project to pick to learn about compilers, linkers, et al. Yours and AH's work is all in main, I want to take a look at some windowing bugs before I do another release.
So, do you happen to know how to compile it with Boost on Windows? I spent way to much time trying to install Boost, install cmake, install visualStudio, only to be slapped with dependencies errors…
I'll put the log in case you or anyone is still here

--------------------------------------------------------------------

-- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config.bat (found version "0.26")
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
-- The following packages have not been found:

* X11
* GTK
* Curses

-- Configuring done
CMake Error at src/CMakeLists.txt:187 (ADD_EXECUTABLE):
Cannot find source file:

C:/Users/mous-/Desktop/MEGAsync/Jeux/PC/tome_2.4/vendor/CppQuickCheck/src/Arbitrary.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at src/CMakeLists.txt:187 (ADD_EXECUTABLE):
No SOURCES given to target: harness


CMake Generate step failed. Build files cannot be regenerated correctly.
Gokudera ElPsyCongroo is offline   Reply With Quote
Old January 21, 2023, 20:14   #16
Sky
Veteran
 
Join Date: Oct 2016
Location: London-ish
Age: 50
Posts: 2,191
Sky will become famous soon enough
can someone run me through how do i make a "shoot manabolt to nearest enemy" macro, please?
__________________
"i can take this dracolich"
Sky is offline   Reply With Quote
Old January 21, 2023, 20:27   #17
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 2,271
Estie is on a distinguished road
First you want every macro to start with \e\e\e , so as to cancel anything that might be waiting for a prompt. Then in tome, unfortunately the letters for various activities such as casting spells or copying spells are variable and might change throughout the game. "m" accesses the menu where you can choose those activities; there is a way to choose an activity not by its letter, but by a different code (I forgot how exactly); but casting spells is the default, so what I do is use

m@\r

which picks "cast a spell" regardless of which letter is currently assigned to casting spells.

Assuming your spellbook is inscribed with @m1 and mana bolt is the first spell in it, denoted by "a", the macro would look like this:

\e\e\em@\r1a

I assume you know how to modify that to include targeting if needed.

That "@" can be given an argument (omitting of which here, as explained, will pick the default - cast spell), I forget how that works; if anyone knows, feel free to enlighten me.

Edit:

I read your op again; since you asked specifically to target the closest enemy, here goes:

Make sure the option "use old target by default" is set; the macro then is:

\e\e\e*tm@\r1a

Last edited by Estie; January 21, 2023 at 20:35.
Estie is offline   Reply With Quote
Old January 31, 2023, 00:05   #18
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,802
Donated: $40
Pete Mack will become famous soon enough
I thought ToMe has keymaps as well as macros? Macros should be used *only* for status changes (like aggressive/cowardly, or fast/slow, or fire arrows/normal shooting.) Unless there are no keymaps. Then things get hairy.
Note: V has no status changes, so macros were removed some time after libcurses. (I only ever used them for color editing.)
Pete Mack is offline   Reply With Quote
Old January 31, 2023, 08:33   #19
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 2,271
Estie is on a distinguished road
Whats the detriment of using macro instead of keymap ?

Edit: Also, in tome I put <detect trap> + <detect monster> on one key, I thought that wouldnt work unless you use macro ?
Estie is offline   Reply With Quote
Old February 1, 2023, 20:31   #20
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,802
Donated: $40
Pete Mack will become famous soon enough
If you use say "M" for the macro, it'l get substituted any time you type it--even if you're not at the command prompt. Use a keymap in that situation. There are some games that actually still need them, including ToME and Sil, but it's tricky to rely solely on macros.
Pete Mack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some kind of repeat bug daQuincy Development 1 January 26, 2019 21:13
Successfully built OmnibandTK-1.5 from src in Windows 7 DernHelm Development 1 February 20, 2015 13:34
that was kind of an interesting game... Grotug Vanilla 14 December 18, 2013 08:39
Help! New MP3 support not working with SDL client under Windows PowerWyrm Development 1 June 4, 2012 16:07
Idea - Shops with custom-built items and changing prices ekolis Variants 4 April 5, 2012 09:15


All times are GMT +1. The time now is 12:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.