.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old October 8th, 2006, 05:30 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Emacs modes for mods and maps

This was harder than I thought. I get this cryptic error (I know nothing about emacs lisp files) after having added "require 'dommod-mode" to my .emacs.

File mode specification error: (void-function dommod-mode)

Trace:

Debugger entered--Lisp error: (void-function delete-duplicates)
(delete-duplicates (append dommod-mode-weapon-keywords dommod-mode-armor-keywords dommod-mode-monster-basic-keywords dommod-mode-monster-advanced-keywords dommod-mode-spell-keywords dommod-mode-item-keywords dommod-mode-name-keywords dommod-mode-nation-keywords))
(regexp-opt (delete-duplicates (append dommod-mode-weapon-keywords dommod-mode-armor-keywords dommod-mode-monster-basic-keywords dommod-mode-monster-advanced-keywords dommod-mode-spell-keywords dommod-mode-item-keywords dommod-mode-name-keywords dommod-mode-nation-keywords)) t)
(concat "^" (regexp-opt (delete-duplicates ...) t) "\\>")
(list (concat "^" (regexp-opt ... t) "\\>") (quote (1 font-lock-function-name-face)))
(list (list (concat "^" ... "\\>") (quote ...)) (list (concat "^" ... "\\>") (quote ...)) (list (concat "^" ... "\\>") (quote ...)) (list (concat "^" ... "\\>") (quote ...)) (list (concat "^" "\\(-- ==.*\\)" "\\>") (quote ...)) (list (concat "^" "\\(==.*\\)" "\\>") (quote ...)))
(progn (list (list ... ...) (list ... ...) (list ... ...) (list ... ...) (list ... ...) (list ... ...)))
(eval-when-compile (list (list ... ...) (list ... ...) (list ... ...) (list ... ...) (list ... ...) (list ... ...)))
(defvar dommod-mode-font-lock-keywords (eval-when-compile (list ... ... ... ... ... ...)))
eval-buffer(#<buffer *load*<2>> nil "dommod-mode" nil t)
load-with-code-conversion("/usr/share/emacs/21.4/lisp/progmodes/dommod-mode.el" "dommod-mode" nil t)
require(dommod-mode)
eval-buffer(#<buffer *load*> nil "~/.emacs" nil t)
load-with-code-conversion("/home/jk/.emacs" "~/.emacs" t t)
load("~/.emacs" t t)
#[nil "&#133;&#151;
__________________
http://www.illwinter.com
Reply With Quote
  #2  
Old October 8th, 2006, 05:43 PM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default Re: Emacs modes for mods and maps

Hmm. The error is that I've used a function, delete-duplicates, that's apparently not part of your Emacs environment. Sorry about that, I was under the impression that it was a standard function.

I'll look into removing that function call or finding out where the delete-duplicates function can be found.

Okay, found it. delete-duplicates is from a CommonList extension to Emacs. If you're lucky it's already installed, just not automatically loaded. Try adding the line "(require 'cl)" to your .emacs file, before the two require statements for dommod-mode and dommap-mode.

If that doesn't sort it, you'll have to find and download this package (it's hopefully a standard package for your distribution); and if that doesn't work, let me know and I'll try to rewrite the code to do away with those function calls. That might take some time before I get the opportunity to do, though.

__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
Reply With Quote
  #3  
Old October 8th, 2006, 06:09 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Emacs modes for mods and maps

It worked, thanks!
__________________
http://www.illwinter.com
Reply With Quote
  #4  
Old October 14th, 2006, 10:45 AM

Tortanick Tortanick is offline
Corporal
 
Join Date: Mar 2006
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Tortanick is on a distinguished road
Default Re: Emacs modes for mods and maps

where would you find the loadpath or .emacs file on windows?
Reply With Quote
  #5  
Old October 14th, 2006, 10:54 AM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default Re: Emacs modes for mods and maps

I think it's easier if I just refer to what the Emacs Wiki has to say on loadpaths. (Read the bit at the bottom about debugging first.)
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
Reply With Quote
  #6  
Old October 14th, 2006, 11:02 AM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default Re: Emacs modes for mods and maps

Note!

There's a new version of the emacs modes with support for the Dominions 3 specific keywords. They can be found attached to the first post of this thread.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
Reply With Quote
  #7  
Old October 15th, 2006, 09:53 AM

Tortanick Tortanick is offline
Corporal
 
Join Date: Mar 2006
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Tortanick is on a distinguished road
Default Re: Emacs modes for mods and maps

I got it working! This is so much easier when you just use Linux

only wokrs if I use M-x load-file manually before opening a dm file. I wonder why my .emacs file isn't working. but its great just having a syntax
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.