Jump to content


Win32 src versus current src


  • Please log in to reply
20 replies to this topic
Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 01 July 2015 - 07:06 AM #1 Win32 src versus current src

What's the difference between the current src and the win32 src? I can get the win32 src to compile but not the current src.

sylae sylae

Wisebottom

  • Global Moderator
    • Member ID: 5,482
  • 3,321 posts
  • LocationToledo, Ohio, United States

Posted 01 July 2015 - 07:28 AM #2 Win32 src versus current src

The win32 directory is older and is from before the BIG MASSIVE UPGRADE Celtic Minstrel is doing. Win32 has been frozen and all the current work is in src.

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 01 July 2015 - 07:53 AM #3 Win32 src versus current src

What's this big massive update, and if I could have a way to compile the current src in CodeBlocks, that would be appreaciated (I'm no Unix guru which is what the Makefile is for). Oh, Win32 is my os.

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 01 July 2015 - 12:00 PM #4 Win32 src versus current src

The easiest way to compile the source on Windows is to obtain Microsoft Visual Studio 2013 (I believe there may be an Express version available as a free download from the Microsoft site) and use the MSVC solution located in src/BoE.vsproj. However, if you want to use Code::Blocks, go ahead and create a project (preferably, in a folder named "BoE.cbproj" in the src directory) and then come talk with me in the IRC channel - I can help you figure out what is needed to build a workable project.

As for what this update is, that's hard to describe, but... the game no longer accesses WinAPI for most things, instead relying on open source libraries such as Boost (for filesystem stuff) and SFML (for windows, graphics, audio). There's also a brand-new scenario format and a new saved game format.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 01 July 2015 - 02:12 PM #5 Win32 src versus current src

Oh! There might be another option for you! It's very possible that Code::Blocks has an option somewhere to import a Visual Studio solution. If you can find such a thing and import the existing solution, that might get you started a lot quicker. As mentioned before, if you save make a folder called "BoE.cbproj" in the "src" directory and save your Code::Blocks project there, I'll even consider including your project in the official repo.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 02 July 2015 - 06:54 AM #6 Win32 src versus current src

View PostCeltic Minstrel, on 01 July 2015 - 02:12 PM, said:

Oh! There might be another option for you! It's very possible that Code::Blocks has an option somewhere to import a Visual Studio solution. If you can find such a thing and import the existing solution, that might get you started a lot quicker. As mentioned before, if you save make a folder called "BoE.cbproj" in the "src" directory and save your Code::Blocks project there, I'll even consider including your project in the official repo.

I plan on doing development on my own, plus I only know the bare basics of C and C++ (mainly syntax and the standard C library). Still, thanks for the advice!

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 02 July 2015 - 08:35 AM #7 Win32 src versus current src

I see. Well, if you do manage to fix any bugs, I'd like to see how you did it, at least. Also, if you want to make and distribute your own separate version of BoE with different features, I would request that you change the following line in scen.fileio.cpp:

data.PushElement("type", "oboe");

Just replace oboe with something else. That way, if someone tries to load a scenario created with your version, it'll show an error message instead of trying to load things it doesn't know about (or worse, silently ignoring them). You only really need to do this if you've changed other stuff in the same file, mind you.

If you only know the standard C library, you might have a bit of difficulty, since I use the C library almost nowhere. :p You should definitely learn the standard C++ library as well.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 03 July 2015 - 06:44 AM #8 Win32 src versus current src

View PostCeltic Minstrel, on 02 July 2015 - 08:35 AM, said:

I see. Well, if you do manage to fix any bugs, I'd like to see how you did it, at least. Also, if you want to make and distribute your own separate version of BoE with different features, I would request that you change the following line in scen.fileio.cpp:

data.PushElement("type", "oboe");

Just replace oboe with something else. That way, if someone tries to load a scenario created with your version, it'll show an error message instead of trying to load things it doesn't know about (or worse, silently ignoring them). You only really need to do this if you've changed other stuff in the same file, mind you.

If you only know the standard C library, you might have a bit of difficulty, since I use the C library almost nowhere. :p You should definitely learn the standard C++ library as well.

I'm self-taght, so yeah, I probably should learn more....

A few things I ran into:

1. Boost has horrible install/linking directions. Can you put that in English for me?
2. When I did get Boost somewhat linked and tried to compile src/game, I got a ton of syntax errors. Is the src directory not completely stable?
3. Can you explain how the custom dialog engine works? I know Jeff had a note on that, but I still don't understand.
4. Meanwhile, I've been looking at the win32 source. I noticed that changing the size of fields will screw up scenarios in the old format. I'm guessing you took this in account?

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 03 July 2015 - 09:44 AM #9 Win32 src versus current src

View PostIr the Great, on 03 July 2015 - 06:44 AM, said:

2. When I did get Boost somewhat linked and tried to compile src/game, I got a ton of syntax errors. Is the src directory not completely stable?
Perhaps you need to tell your compiler to use the C++11 standard instead of C++03?

View PostIr the Great, on 03 July 2015 - 06:44 AM, said:

3. Can you explain how the custom dialog engine works? I know Jeff had a note on that, but I still don't understand.
Though Jeff does have a note on that (it's even there in doc/), it's no longer relevant. The current dialog engine defines dialogs using XML files. There's a schema for this at rsrc/schemas/dialog.xsd (not dialogue.xsd, that's something different), though the schema might not be a good way to explain the format. There's also a Doxygen config to generate fairly detailed documentation of the dialog engine in src/doxy/; if you don't have Doxygen, most of this documentation can be found in the various header files in src/dialogxml/, and the rest can be read online here on GitHub.

View PostIr the Great, on 03 July 2015 - 06:44 AM, said:

4. Meanwhile, I've been looking at the win32 source. I noticed that changing the size of fields will screw up scenarios in the old format. I'm guessing you took this in account?
The old structures are preserved in src/oldstructs.hpp and used for nothing other than loading in old scenarios. They're not quite identical to the old structures, but they should be functionally the same.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 04 July 2015 - 09:24 AM #10 Win32 src versus current src

Well, couldn't get Boost to compile the filesystem library, and SFML doesn'tseem to work properly on my os, so I've given up.Nonetheless, I'm working on a scenaro (that probably won't meet your quality standards) that I hope will be atleast interesting.And yes, syntax errors even with std=c++11

Edited by Ir the Great, 04 July 2015 - 09:25 AM.


Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 04 July 2015 - 04:42 PM #11 Win32 src versus current src

I don't have any quality standards for scenarios. You're welcome to do whatever you want with them. I'm not soliciting for scenarios to be included with the game, though I'm certainly happy that someone besides myself is working on a new one.

If you want to try again with compiling the source later, let me know (and either post the errors or join the IRC).


Also! If you happen to notice any bugs while making your scenario, please let me know so I can fix them.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 05 July 2015 - 05:42 PM #12 Win32 src versus current src

Well, I was just looking at the new documentation for the updated game and want to ask a few things:

1.) Secret Passage currently cannot be chained/must be the first in a chain. I would like to be able to do stuff like check for Woodsman/Cave Lore before allowing a secret passage

2) The editor docs links are broken -- for some reason, each one adds an extra /appendix/ to the url before the page name.

3. Is there any chance you will release a beta of this new and improved game? It sounds super neat!

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 05 July 2015 - 06:26 PM #13 Win32 src versus current src

View PostIr the Great, on 05 July 2015 - 05:42 PM, said:

1.) Secret Passage currently cannot be chained/must be the first in a chain. I would like to be able to do stuff like check for Woodsman/Cave Lore before allowing a secret passage
It must still be the first in a chain. However, you can undo a secret passage node later in the chain. (At least, you're supposed to be able to. I haven't specifically tested it.) In other words, to do what you want, you'd have a chain similar to this:

@block-move = 0 # A "Prevent Action" node
  ex1 = 0 # Allow entry
  ex2 = 1 # Force
  goto = 1
@if-trait = 1
  ex1 = 4, -1 # If woodsman trait is present, do nothing (end encounter)
  ex1 = 1, 2 # Same as legacy behaviour (succeed test, ie call node in ex1b, if there's at least 1 member with woodsman)
  goto = 2 # If no-one has woodsman, go to node 2
@block-move = 2
  ex1 = 1 # Disallow entry
  ex2 = 0 # Cancel "force" setting

View PostIr the Great, on 05 July 2015 - 05:42 PM, said:

2) The editor docs links are broken -- for some reason, each one adds an extra /appendix/ to the url before the page name.
Really? That doesn't happen in my version, nor in the version up on Sylae's site. Maybe you're looking at an older version of the docs?

View PostIr the Great, on 05 July 2015 - 05:42 PM, said:

3. Is there any chance you will release a beta of this new and improved game? It sounds super neat!
I consider the builds released in the "Finally some progress" thread to be beta versions. I think a non-beta OBoE 2.0 build may be ready "soon". That could potentially be sooner if I had more testers than just ADoS. And how soon is "soon"? That's a very good question that I don't have a good answer for, but you should allow at least a month before getting impatient.

(Note that I'm calling this project "OBoE" rather than "CBoE", partly because I like how it looks like an actual word and partly because it's not really based on any of Ormus's Classic BoE work; I copy-pasted+tweaked or reimplemented a few things from his code, but I was working from Mac source that was updated by Khoth, and even the Windows version is now based off that source.)
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Lilith Lilith

in before the apocalypse

  • Global Moderator
    • Member ID: 669
  • 19,828 posts
  • LocationMelbourne, Australia

Posted 05 July 2015 - 06:29 PM #14 Win32 src versus current src

View PostIr the Great, on 05 July 2015 - 05:42 PM, said:

Well, I was just looking at the new documentation for the updated game and want to ask a few things:

1.) Secret Passage currently cannot be chained/must be the first in a chain. I would like to be able to do stuff like check for Woodsman/Cave Lore before allowing a secret passage

The best way to do this is usually with a Block Entry node: put it on a version of the desired terrain type that's normally walkable, check for the relevant trait and then silently block the party's entry if it's lacking.

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 06 July 2015 - 06:36 AM #15 Win32 src versus current src

View PostLilith, on 05 July 2015 - 06:29 PM, said:

The best way to do this is usually with a Block Entry node: put it on a version of the desired terrain type that's normally walkable, check for the relevant trait and then silently block the party's entry if it's lacking.

I'm sure this idea has been done to death, but I've created an outdoors toll gate. It wouldn't be good if the player knew where the secret passage is... which is basically what would happen if I used a terrain that can be walked on.... Any other suggestions?

@Celtic -- The docs were in the /docs folder of the source code from about 5 days ago.

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 06 July 2015 - 06:40 AM #16 Win32 src versus current src

Did you try what I suggested? Also, you could always use a terrain that looks like it can't be walked on but is actually set to allow being walked on, like the built-in cave secret passage terrains.

As for the docs, that's kinda strange. I'll look into it later.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 06 July 2015 - 01:49 PM #17 Win32 src versus current src

I tried something different:

First Node: Secret Passage
Second Node: Checks for Woodsman
  If Woodsman do nothing
  Else goto Third Node
Third Node: Can't Enter (1)

As to your most recent experimental build -- Have you worked on images, because if so, they definitely aren't showing up properly for me.

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 06 July 2015 - 03:20 PM #18 Win32 src versus current src

View PostIr the Great, on 06 July 2015 - 01:49 PM, said:

I tried something different:

First Node: Secret Passage
Second Node: Checks for Woodsman
  If Woodsman do nothing
  Else goto Third Node
Third Node: Can't Enter (1)
This implies you're not using my experimental build, as neither Can't Enter nor Secret Passage exist by those names in it. What you describe is essentially equivalent to what I described, and would convert to that when importing into the new BoE.

View PostIr the Great, on 06 July 2015 - 01:49 PM, said:

As to your most recent experimental build -- Have you worked on images, because if so, they definitely aren't showing up properly for me.
What do you mean by "worked on images"? What do you mean by "not showing up properly"? A screenshot could be useful (you can upload it to an image-sharing site such as imgur, imageshack, photobucket, tinypic).
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ir the Great Ir the Great

Citizen

  • Member
    • Member ID: 13,000
  • 42 posts

Posted 06 July 2015 - 04:07 PM #19 Win32 src versus current src

View PostCeltic Minstrel, on 06 July 2015 - 03:20 PM, said:

This implies you're not using my experimental build, as neither Can't Enter nor Secret Passage exist by those names in it. What you describe is essentially equivalent to what I described, and would convert to that when importing into the new BoE.

What do you mean by "worked on images"? What do you mean by "not showing up properly"? A screenshot could be useful (you can upload it to an image-sharing site such as imgur, imageshack, photobucket, tinypic).

No, I'm using CBoE, not one of your builds.

Anyway, how do you take screenshots on Windows 7?

Edit: See http://imgur.com/nKuKaX3

The opening sequence for OBoE itself btw is the only thing that looks decent.

The Almighty Doer of Stuff The Almighty Doer of Stuff

Heart of Avadon

  • Member
    • Member ID: 72
  • 4,402 posts
  • LocationMassachusetts

Posted 06 July 2015 - 05:06 PM #20 Win32 src versus current src

Ir the Great, CBoE hasn't been developed for a long time and the sole developer doesn't come around here anymore. Filing bug reports for it is useless and if you use that version of BoE to make a scenario it will not run in OBoE. There is exactly one scenario created with CBoE and the designer is one of OBoE's three developers (Sylae) so she'll easily be able to convert it once a playable release is built, but if you are new to BoE and can't program code with any usable skill, nobody will be playing your scenario.

Join the beta team! We have T shirts!
The unofficial Blades of Exile merchandise shop: No markups, cheap prices, quality printing! Spread the word!

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,868 posts

Posted 06 July 2015 - 05:09 PM #21 Win32 src versus current src

Ah, sorry, if you're using CBoE I can't really help you. That does make me think of something ADoS said about a screen-blanking bug, though. It should work in my builds, if you don't mind a few bugs and don't want to wait for that non-beta version I mentioned.

View PostThe Almighty Doer of Stuff, on 06 July 2015 - 05:06 PM, said:

if you use that version of BoE to make a scenario it will not run in OBoE.
This is not exactly true. I think the only thing that won't work in the coversion is the Display Picture special node. Mind you, I haven't actually tested this... I should probably download Sylae's scenario to make sure it works.
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users