Attnam / ivan

Iter Vehemens ad Necem - a continuation of the graphical roguelike by members of http://attnam.com
GNU General Public License v2.0
297 stars 42 forks source link

Developer Tools (fixed, improved, expanded) #601

Open AquariusPower opened 4 years ago

AquariusPower commented 4 years ago

Developer Tools:

copy from https://github.com/Attnam/ivan/pull/587, merged with meld on linux I will check if there are other things that can be split from that PR w/o getting overly complicated. Some splits required new code dependencies that are now in 3+ branches. May be that PR becomes something like "Some Fixes" just as initially intended.

ryfactor commented 2 years ago

@AquariusPower Are you able to update this PR? I get a error: 'GetUserDataDir' is not a member of 'game' in char.cpp when I try to compile.

AquariusPower commented 2 years ago

dungeon.cpp

/home/runner/work/ivan/ivan/Main/Source/dungeon.cpp:130:57: error: ‘GetAutoPlayMode’ is not a member of ‘game’
  130 |                              Displacement, WHITE, game::GetAutoPlayMode()<2,

Some things from wizautoplay.h(.cpp) were merged into Attnam:master in the past? like GetAutoPlayMode() that was copied into game.h(.cpp)? But now I think I may have created wizautoplay.h after and moved from game.h to it. Anyway there are some inconsistencies like dungeon.cpp expects GetAutoPlayMode() to be at game.h(.cpp), but DevTools have these only at wizautoplay.h(.cpp).

I made this backup https://github.com/AquariusPower/ivan/tree/DevTools.TempBackup of this branch. I will see what I can do.

AquariusPower commented 2 years ago

I still havent found a way to install libsdl2-dev on ubuntu20.04 (there is some dep problems that makes no sense to me and would mess everything, it just wont install anyway). If someone knows how to setup SDL2 development environment on ubuntu20.04 I would like to know :) (I thought on downloading and extracting all packages to some user folder, and just configure the terminal environment to look there, I guess it could work) So, this means I fixed online only and could not test on my machine. It will compile but I could not test the way I like: run it to see if it is working.