Announcement

Collapse
No announcement yet.

Freeciv Event Examples

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    Originally posted by demipomme
    I can't find the tutorial.sav in the freeciv I downloaded and can't get these events to work. Can someone point me in the right direction?
    Which version did you download and for what operating system?

    Comment


    • #62
      Freeciv 2.0.8 non-gtk for windoze. I've downloaded the tutorial.sav file from the web (just did a search), but the events stuff won't show up i.e. no messages. (Please bear in mind when answering that my computer ineptitude knows no bounds). Cheers!

      Comment


      • #63
        The tutorial is included in the 2.1 beta (which supports events), try that one instead.
        Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

        Elie A. Shneour Skeptical Inquirer

        Comment


        • #64
          Civworld for 2.1 is now available !

          This package courtesy of Christian Prochaska, essentially a build of the latest dev version with editor capabilities. Just load a game, switch to observer and enter editor mode.
          Last edited by himasaram; June 8, 2006, 17:22.

          Comment


          • #65
            NICE!!!!

            Comment


            • #66
              Ok ok! I'll provide a direct link to the editor too

              ftp://ftp.freeciv.org/pub/freeciv/pa...gtk2-setup.exe
              Last edited by himasaram; June 10, 2006, 06:11.

              Comment


              • #67
                OK. I've tried 2.1 and played to tutorial and seen the pop-up messages etc. However if I edit the scripts.lua file in the default directory the game crashes. All I've tried to do is put in the "Hello World!" script from the events page (http://www.freeciv.org/index.php/Eve...ference_Manual). Suggestions?

                Comment


                • #68
                  Sweet. Got my first event to work:

                  function city_built_callback(city)
                  local owner = city.owner
                  local workers = find.unit_type('Workers')
                  create_unit(owner, city.tile, workers, 0, city, -1)
                  end
                  signal.connect('city_built', 'city_built_callback')

                  This should encourage the ai to do a little more terrain development!

                  Need to put in a tech check and an if statement to produce engineers for later in the game.

                  Comment


                  • #69
                    Ok, more good news. The Freeciv map collection is about to double. I've converted a number of realworld maps to the FC format. Most maps didn't list an author but where known I've included the name in the SAV description field.

                    I've only given a few maps a quick test so I if anyone would like to give it a try and report the bugs, be my guest.
                    [list=1][*] america.SAV [*]Canada.SAV [*]BRITISLS.SAV[*]ALASKA.SAV [*]ATLANTIC.SAV[*]AUSSIE.SAV [*]BARBADOS.SAV[*]BATIC.SAV [*]BOSNIA.SAV [*]BRASIL.SAV [*]BRAZIL.SAV [*]AFRICA3.SAV [*]Antartic.SAV[*]CARIBE.SAV [*]cmapgbr.SAV [*]EASTUSA.SAV [*]EURASIA.SAV [*]EUROAMER.SAV[*]euroatl.SAV [*]GERMANY2.SAV[*]GEUROPE.SAV [*]GR8LAKES.SAV[*]Greece.SAV [*]holland2.SAV[*]INDIA.SAV [*]IRELAND.SAV [*]ITALIA.SAV [*]JAPAN.SAV [*]MEDITERR.SAV[*]MIDEAST.SAV [*]NORTHPOL.SAV[*]samap.SAV [*]se-asia.SAV [*]usa.SAV
                    [/list=1]
                    Attached Files
                    Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

                    Elie A. Shneour Skeptical Inquirer

                    Comment


                    • #70
                      Hey Cap, how do you work the converter? I'm having trouble.

                      Comment


                      • #71
                        OK, for everyone. The new Freeciv version, linked himasaram, has a terrain editor built in. In game it can edit:

                        Terrain (including rivers)
                        Terrain Improvements
                        Add (and delete?) cities
                        Add (and delete?) units
                        Expand borders.

                        Comment


                        • #72
                          Originally posted by demipomme
                          Sweet. Got my first event to work:

                          function city_built_callback(city)
                          local owner = city.owner
                          local workers = find.unit_type('Workers')
                          create_unit(owner, city.tile, workers, 0, city, -1)
                          end
                          signal.connect('city_built', 'city_built_callback')

                          This should encourage the ai to do a little more terrain development!

                          Need to put in a tech check and an if statement to produce engineers for later in the game.
                          Awesome! Keep it up!

                          Comment


                          • #73
                            Harry,

                            You need to include "-o" option, otherwise it doesn´t generate a new file, so for example:

                            civ2mp2fc world.map -o world.sav
                            Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

                            Elie A. Shneour Skeptical Inquirer

                            Comment


                            • #74
                              demipomme,

                              Please keep sharing your attempts, the more we learn about Lua and the FC event structure the better.
                              Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

                              Elie A. Shneour Skeptical Inquirer

                              Comment


                              • #75
                                Originally posted by CapTVK
                                Ok, more good news. The Freeciv map collection is about to double. I've converted a number of realworld maps to the FC format. Most maps didn't list an author but where known I've included the name in the SAV description field.

                                I've only given a few maps a quick test so I if anyone would like to give it a try and report the bugs, be my guest.

                                (snippet)
                                Reply and bug report in the "Freeciv map creation" tread!

                                Comment

                                Working...
                                X